Liveness 探测失败输出不在 kubelet 日志中

Liveness probe failure output not in kubelet logs

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

例如,我从这里的 liveness probe 示例创建了一个 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: 

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