@@ -60,7 +60,7 @@ broken states, and cannot recover except by being restarted. Kubernetes provides
60
60
liveness probes to detect and remedy such situations.
61
61
62
62
In this exercise, you create a Pod that runs a container based on the
63
- ` registry.k8s.io/busybox ` image. Here is the configuration file for the Pod:
63
+ ` registry.k8s.io/busybox:1.27.2 ` image. Here is the configuration file for the Pod:
64
64
65
65
{{% code_sample file="pods/probe/exec-liveness.yaml" %}}
66
66
@@ -101,8 +101,8 @@ The output indicates that no liveness probes have failed yet:
101
101
Type Reason Age From Message
102
102
---- ------ ---- ---- -------
103
103
Normal Scheduled 11s default-scheduler Successfully assigned default/liveness-exec to node01
104
- Normal Pulling 9s kubelet, node01 Pulling image "registry.k8s.io/busybox"
105
- Normal Pulled 7s kubelet, node01 Successfully pulled image "registry.k8s.io/busybox"
104
+ Normal Pulling 9s kubelet, node01 Pulling image "registry.k8s.io/busybox:1.27.2 "
105
+ Normal Pulled 7s kubelet, node01 Successfully pulled image "registry.k8s.io/busybox:1.27.2 "
106
106
Normal Created 7s kubelet, node01 Created container liveness
107
107
Normal Started 7s kubelet, node01 Started container liveness
108
108
```
@@ -120,8 +120,8 @@ probes have failed, and the failed containers have been killed and recreated.
120
120
Type Reason Age From Message
121
121
---- ------ ---- ---- -------
122
122
Normal Scheduled 57s default-scheduler Successfully assigned default/liveness-exec to node01
123
- Normal Pulling 55s kubelet, node01 Pulling image "registry.k8s.io/busybox"
124
- Normal Pulled 53s kubelet, node01 Successfully pulled image "registry.k8s.io/busybox"
123
+ Normal Pulling 55s kubelet, node01 Pulling image "registry.k8s.io/busybox:1.27.2 "
124
+ Normal Pulled 53s kubelet, node01 Successfully pulled image "registry.k8s.io/busybox:1.27.2 "
125
125
Normal Created 53s kubelet, node01 Created container liveness
126
126
Normal Started 53s kubelet, node01 Started container liveness
127
127
Warning Unhealthy 10s (x3 over 20s) kubelet, node01 Liveness probe failed: cat: can't open '/tmp/healthy': No such file or directory
0 commit comments