From the course: Certified Kubernetes Application Developer (CKAD) Cert Prep

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Kubernetes API health endpoints

Kubernetes API health endpoints

- So these external applications are not available in Vanilla Kubernetes, but Kubernetes as probes and probes work with API health endpoints. So what is this about? Well, API health endpoints are programmed into some applications to monitor if an application is still working as expected. And as a common practice, applications can be programmed to provide access /healthz to test application availability. The kube-apiserver itself exposes three endpoints to test that it's working. /healthz returns "ok" if the API server is healthy, /livez indicates if the API server is alive, and /readyz indicates if the API server is ready to service requests, you can easily test these endpoints from the command line using curl -k https://$(minikube ip):8443/healthz, and the result should be okay. And similar endpoints may be provided by any web-based application. It is not a universal standard, but it's a standard that you will find a lot. So chances are that you can use this on other applications as…

Contents