You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Kubernetes, pods can be in different phases: pending, running, and terminating. In addition, the containers in Pods may be in different status: running, waiting (because of CrashLoopBackOff).
Question Shall we only report the pods that are in running phase, and its containers are in running status?
In current implementation, we report all the running pods can be found by kuberentes.Pods().List() API.
However, in cases that some pods are in running phase, and its containers have been crashed, CPU/Memory usage metrics will be missing for these containers and pods. In these cases, should we set the CPU/Memory usage to be zero, or drop these kinds of Pods in discovery response? In current implementation, we drop the CPU/Memory commodities for the containers/Pods.
The text was updated successfully, but these errors were encountered:
Another case is that a pod is pending because of not enough resource, then this pod won't be reported to OpsMgr. In this case, OpsMgr will never do anything for this pending Pod.
pallavidn
pushed a commit
to pallavidn/kubeturbo
that referenced
this issue
Mar 29, 2024
In Kubernetes, pods can be in different phases: pending, running, and terminating. In addition, the containers in Pods may be in different status: running, waiting (because of CrashLoopBackOff).
Question Shall we only report the pods that are in running phase, and its containers are in running status?
In current implementation, we report all the running pods can be found by kuberentes.Pods().List() API.
However, in cases that some pods are in running phase, and its containers have been crashed, CPU/Memory usage metrics will be missing for these containers and pods. In these cases, should we set the CPU/Memory usage to be zero, or drop these kinds of Pods in discovery response? In current implementation, we drop the CPU/Memory commodities for the containers/Pods.
The text was updated successfully, but these errors were encountered: