...
- In another terminal run the proxy with the command - kubectl proxy
- this will lock the terminal from which the command is run
- Go back to another terminal
- 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
- export POD_NAME=$(kubectl get pods -o go-template --template '{{range .item}}{{.metadata.name}}{{"\n"}}{{end}}')
- echo $POD_NAME
- curl http://localhost:8001/api/v1/namespaces/default/pods/$POD_NAME/proxy/
...