Is there a way in Kubernetes to list all API endpoints currently available? So that I can get an updated list of all possible API endpoints as long as I have at least one valid API endpoint.
Is there a way in Kubernetes to list all API endpoints currently available? So that I can get an updated list of all possible API endpoints as long as I have at least one valid API endpoint.
Yes, there is. You can get all the endpoints with
kubectl
command:$ kubectl get endpoints --all-namespaces
You could type a shorter version of above command:
$ kubectl get ep -A
(-A
from version 1.14 and newer)Output of above command should look like that:
Take a specific look on:
It's a point of contact to your Kubernetes cluster.
You can also use
$ kubectl describe endpoint EP_NAME
to get more information:Please refer to additional resources:
Let me know if you have any questions to that.