Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. kubectl version
  2. kubectl get version
  3. kubectl run kubernetes-bootcamp --image=gcr.io/google-samples/kubernetes-bootcamp:v1 --port=8080
  4. kubectl get deployments

The above steps is similar to what happens with docker run but pointing to an image that is in the remote repo (download the image and then run a container)

Use kubectl get pods to see the new pod.  Copy the pod name.

Use the command kubectl get -o json pob <pod name> to see the pod details.

Viewing the app

  1. In another terminal run the proxy with the command - kubectl proxy
    1. this will lock the terminal from which the command is run
  2. Go back to another terminal 
  3. curl http://localhost:8001/version

...

Code Block
languagebash
titleshell command
kubectl expose deployment hello-node --type=LoadBalancer --port=8080

Run the command minikube service list to get a list of available services.  When you do this the hello-world service should have a valid URL you can enter into your browser.