【发布时间】:2020-01-18 22:13:02
【问题描述】:
有没有办法检查最后一次完成活动和就绪检查的时间以及相同的结果。
我通过做检查
kubectl get pod my-pod -o yaml
状态部分显示如下,但不告诉 kubelet 何时运行健康检查
conditions:
- lastProbeTime: null
lastTransitionTime: 2019-09-17T10:38:20Z
status: "True"
type: Initialized
- lastProbeTime: null
lastTransitionTime: 2019-09-17T10:38:35Z
status: "True"
type: Ready
- lastProbeTime: null
lastTransitionTime: 2019-09-17T10:38:35Z
status: "True"
type: ContainersReady
- lastProbeTime: null
lastTransitionTime: 2019-09-17T10:38:20Z
status: "True"
type: PodScheduled
containerStatuses:
- containerID: docker://<some link>
image: nginx:latest
imageID: someid
lastState: {}
name: nginx
ready: true
restartCount: 0
state:
running:
startedAt: 2019-09-17T10:38:22Z
hostIP: 172.18.3.8
phase: Running```
【问题讨论】:
标签: kubernetes kubernetes-health-check