根据定义, kube_pod_container_status_waiting_reason 应该捕获处于等待状态的pod的原因。
kube_pod_container_status_waiting_reason
我的kubernetes集群中有几个pod,它们位于CrashLoopBackOff中,但我没有看到 kube_pod_container_status_waiting_reason 捕获到的原因。它只捕获了两个原因- ErrImagePull和ContainerCreating。
~$ k get pods -o wide --show-all --all-namespaces | grep Crash cattle-system cattle-cluster-agent-6f744c67cc-jlkjh 0/1 CrashLoopBackOff 2885 10d 10.233.121.247 k8s-4 cattle-system cattle-node-agent-6klkh 0/1 CrashLoopBackOff 2886 171d 10.171.201.127 k8s-2 cattle-system cattle-node-agent-j6r94 0/1 CrashLoopBackOff 2887 171d 10.171.201.110 k8s-3 cattle-system cattle-node-agent-nkfcq 0/1 CrashLoopBackOff 17775 171d 10.171.201.131 k8s-1