Versions Compared

Key

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

...

  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
Info

When the proxy is started, it reports back in the terminal the IP and Port it is running on.  Enter these details into your browser to see all the service endpoints that minikube has created


On Linux/UNIX

  1. export POD_NAME=$(kubectl get pods -o go-template --template '{{range .item}}{{.metadata.name}}{{"\n"}}{{end}}')
  2. echo $POD_NAME
  3. curl http://localhost:8001/api/v1/namespaces/default/pods/$POD_NAME/proxy/

...