活动探针故障输出不在kubelet日志中

时间:2016-08-29 20:54:32

标签: kubernetes kubernetes-health-check

使用exec时活体探测失败的输出未显示在kubelet事件日志中(kubernetes版本1.3.2)。

例如,我在此处从活动探测示例创建了一个pod:http://kubernetes.io/docs/user-guide/liveness/

使用exec-liveness.yaml,我没有得到Liveness probe failed:

的任何输出
Events:
  FirstSeen LastSeen    Count   From                            SubobjectPath           TypeReason      Message
  --------- --------    -----   ----                            -------------           --------    ------      -------
  1m        1m      1   {default-scheduler }                                    Normal      Scheduled   Successfully assigned liveness-exec to my-node
  1m        1m      1   {kubelet my-node}   spec.containers{liveness}   Normal      Pulling     pulling image "gcr.io/google_containers/busybox"
  1m        1m      1   {kubelet my-node}   spec.containers{liveness}   Normal      Pulled      Successfully pulled image "gcr.io/google_containers/busybox"
  1m        1m      1   {kubelet my-node}   spec.containers{liveness}   Normal      Created     Created container with docker id e84949417706
  1m        1m      1   {kubelet my-node}   spec.containers{liveness}   Normal      Started     Started container with docker id e84949417706
  44s       24s     3   {kubelet my-node}   spec.containers{liveness}   Warning     Unhealthy   Liveness probe failed: 

1 个答案:

答案 0 :(得分:3)

这是一个将在https://github.com/kubernetes/kubernetes/pull/30731的Kubernetes v1.4中修复的错误。