The API is available to you outside of kubectl . In fact, I understand that under it all kubectl just makes REST calls to the API server. In a cluster that uses TLS certificates for authentication, calling curl to list your modules might look something like this (you can get the location / port of your apiserver using kubectl cluster-info | grep 'Kubernetes master' ):
curl --cert myuser.pem --key myuser-key.pem --cacert /path/to/ca.pem https://my-prod-cluster-apiserver:6443/api/v1/pods
This document shows how to use kubectl proxy so that you can explore the API documents created using Swagger in your own cluster. These documents are also sometimes generated and placed here .
source share