我有一个日志,看起来像下面这样。年龄字段中的" over“表示什么-类似于"(x2 Over 109s)”
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 110s default-scheduler Successfully assigned default/liveness-exec to minikube
Warning Unhealthy 60s (x3 over 70s) kubelet, minikube Liveness probe failed: cat: can't open '/tmp/healthy': No such file or directory
Normal Killing 60s kubelet, minikube Container liveness failed liveness probe, will be restarted
Normal Pulling 30s (x2 over 109s) kubelet, minikube Pulling image "k8s.gcr.io/busybox"
Normal Pulled 28s (x2 over 105s) kubelet, minikube Successfully pulled image "k8s.gcr.io/busybox"
Normal Created 28s (x2 over 105s) kubelet, minikube Created container liveness
Normal Started 28s (x2 over 105s) kubelet, minikube Started container liveness发布于 2020-09-24 19:57:43
这些数字表示事件在一段T秒的时间内发生了N次。在您的示例中,(x3 over 70s)表示该事件在70秒内发生了3次。60秒前,活动探测失败了3次。
看看staging/src/k8s.io/kubectl/pkg/describe/describe.go中的describePod和Describe函数会让你对它有一个更好的了解。
看看:kubectl-describe-scdebug-kubernetes-crashloopbackoff/,kubernetes-configure-liveness-and-readiness-probes。
https://stackoverflow.com/questions/64042492
复制相似问题