January 29, 2017

5.3 The API Endpoint

The snippet from this slide suggests us to ssh the minikube VM then to curl the API.

When I tried this I ran into the issue that minikube VM doesn't come with curl. 

After looking at some docs, I took another approach (and write this here in case other student wonder how to curl the API)

From my host machine, I ran 

kubectl proxy --port=8080 --api-prefix=/

To proxy the api endpoints on my localhost


I'm now able to curl the api with 

curl http://localhost:8080/apis | jq

curl http://localhost:8080/api

curl http://localhost:8080/api/va


Hope this might save some time to other students with the same issue.


Click Here!