What will be the right API for the K8s cluster status monitoring from remote management system. The status information is needed to make sure whether any new deployments on the cluster will go through, whether existing deployments will work as expected etc…
The K8s component status api (/api/v1/componentstatus) seems to be deprecated (reference: https://github.com/kubernetes/enhancements/issues/553)…
To get the equivalent of deprecated K8s component status api, will it be a good idea to get the status of the master node components one by one and then derive the aggregated status based on the individual components status…
Ex: Invoke the ‘/api/v1/namespace/kube_system/pods’ on each master nodes of the cluster and look for the status of kube-apiserver, kube-scheduler, kube-controller-manager and etcd pods… let’s say if there are 3 master nodes and if etcd of all the 3 master nodes are down then it indicates the critical state and if any one of them are down then major state…
Isn’t it also needed to consider the worker nodes status for the overall K8s cluster status check…