Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 998 Bytes

README.md

File metadata and controls

35 lines (25 loc) · 998 Bytes

Rancher Desktop exploration

Linux installation

Followed .deb install instructions.

Hello world

  • Files in this repo created following hello world example instructions.

  • Run command to build the image and then view it:

    docker build --tag nginx-helloworld:latest .
    docker images | grep nginx-helloworld
    
  • Deploy to k8s:

    kubectl run hello-world --image=nginx-helloworld:latest --image-pull-policy=Never --port=80
    kubectl port-forward pods/hello-world 8080:80
    

    [!IMPORTANT]

    You will need to wait in between these commands, or you may receive error: unable to forward port because pod is not running. Current status=Pending.

    Once the second command is run, your shell will be captured.

  • Visit localhost:8080 to view a lovely message.