kubernetes 如何获取k8s中资源示例的最新变化时间

5q4ezhmt  于 2023-01-01  发布在  Kubernetes
关注(0)|答案(1)|浏览(159)

对于kubernetes中的Deployment,服务映像可能会迭代更新,因此示例将为updated constantly

svmlkihl

svmlkihl1#

似乎依赖于资源/对象。
对于pod,似乎存在:

status:
  conditions:
  - lastProbeTime: null
    lastTransitionTime: "2022-12-29T14:53:50Z"
    status: "True"
    type: Initialized
  - lastProbeTime: null
    lastTransitionTime: "2022-12-29T14:53:51Z"
    status: "True"
    type: Ready
  - lastProbeTime: null
    lastTransitionTime: "2022-12-29T14:53:51Z"
    status: "True"
    type: ContainersReady
  - lastProbeTime: null
    lastTransitionTime: "2022-12-29T14:53:50Z"
    status: "True"
    type: PodScheduled

相关问题