Get cluster azure kubernetes service (AKS) health/availability in C# application Get cluster azure kubernetes service (AKS) health/availability in C# application kubernetes kubernetes

Get cluster azure kubernetes service (AKS) health/availability in C# application


You can use the Kubernetes API client SDK for C# (https://github.com/kubernetes-client/csharp) to connect with the API Server and get the status of the desired PODS.

You may need to create a Service Account and assign it to your POD if you get permission issues.

Client libraries often handle common tasks such as authentication for you. Most client libraries can discover and use the Kubernetes Service Account to authenticate if the API client is running inside the Kubernetes cluster, or can understand the kubeconfig file format to read the credentials and the API Server address.

https://kubernetes.io/docs/reference/using-api/client-libraries/