Skip to content

Instantly share code, notes, and snippets.

@ptran32
Created August 21, 2023 02:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ptran32/d4e79a52465f57fc8102668cf0d80a66 to your computer and use it in GitHub Desktop.
Save ptran32/d4e79a52465f57fc8102668cf0d80a66 to your computer and use it in GitHub Desktop.
test liveness doesn't kill pod as expected
Name: test-7b77dfc957-7fd2p
Namespace: gmp-test
Priority: 0
Node: gke-xxxx
Start Time: Sun, 20 Aug 2023 21:57:18 -0400
Labels: app=test
pod-template-hash=7b77dfc957
Annotations: <none>
Status: Running
IP: 10.xxx.xxx.xxx
IPs:
IP: 10.xxx.xxx.xxx
Controlled By: ReplicaSet/test-7b77dfc957
Containers:
liveness:
Container ID: containerd://4d774ed85d5d2fd63f56a47433f16b597174922be10408072e3921edcf0dd46a
Image: k8s.gcr.io/busybox
Image ID: sha256:36a4dca0fe6fb2a5133dc11a6c8907a97aea122613fa3e98be033959a0821a1f
Port: <none>
Host Port: <none>
Args:
/bin/sh
-c
touch /tmp/healthy; sleep 10; rm -rf /tmp/healthy; sleep 600
State: Running
Started: Sun, 20 Aug 2023 21:57:19 -0400
Ready: True
Restart Count: 0
Liveness: exec [invalid] delay=5s timeout=1s period=5s #success=1 #failure=3
Environment: <none>
Mounts:
/var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-cgtxg (ro)
Conditions:
Type Status
Initialized True
Ready True
ContainersReady True
PodScheduled True
Volumes:
kube-api-access-cgtxg:
Type: Projected (a volume that contains injected data from multiple sources)
TokenExpirationSeconds: 3607
ConfigMapName: kube-root-ca.crt
ConfigMapOptional: <nil>
DownwardAPI: true
QoS Class: BestEffort
Node-Selectors: <none>
Tolerations: node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 5m11s default-scheduler Successfully assigned gmp-test/test-7b77dfc957-7fd2p to gke-jd-infra-dev-infra-20230815082920-cca5247d-g9nx
Normal Pulling 5m11s kubelet Pulling image "k8s.gcr.io/busybox"
Normal Pulled 5m10s kubelet Successfully pulled image "k8s.gcr.io/busybox" in 435.627709ms (435.636685ms including waiting)
Normal Created 5m10s kubelet Created container liveness
Normal Started 5m10s kubelet Started container liveness
Warning Unhealthy 5m1s kubelet Liveness probe errored: rpc error: code = Unknown desc = failed to exec in container: failed to start exec "918932e810262e38004400d76cc942dd03efa6ffe635dbc2cbb6acac7335c83b": OCI runtime exec failed: exec failed: unable to start container process: exec: "invalid": executable file not found in $PATH: unknown
Warning Unhealthy 4m56s kubelet Liveness probe errored: rpc error: code = Unknown desc = failed to exec in container: failed to start exec "3b85af4e51538961d4ea6653106773ade8b52c858f0a47cb0d35d0053e88199c": OCI runtime exec failed: exec failed: unable to start container process: exec: "invalid": executable file not found in $PATH: unknown
Warning Unhealthy 4m51s kubelet Liveness probe errored: rpc error: code = Unknown desc = failed to exec in container: failed to start exec "4db343b7e1d4d8522752b6deebef1a04a49d064830d270b08e7764eaf7188a45": OCI runtime exec failed: exec failed: unable to start container process: exec: "invalid": executable file not found in $PATH: unknown
Warning Unhealthy 4m46s kubelet Liveness probe errored: rpc error: code = Unknown desc = failed to exec in container: failed to start exec "ba50ac4fa2b9a87f7c4d9244d090d78a44a1ac52dd117430dcd32f3e89984668": OCI runtime exec failed: exec failed: unable to start container process: exec: "invalid": executable file not found in $PATH: unknown
Warning Unhealthy 4m41s kubelet Liveness probe errored: rpc error: code = Unknown desc = failed to exec in container: failed to start exec "2b6b707bac4eaff2089ef15266059306c194ac4627a7af4ff9f52c52b2a65c41": OCI runtime exec failed: exec failed: unable to start container process: exec: "invalid": executable file not found in $PATH: unknown
Warning Unhealthy 4m36s kubelet Liveness probe errored: rpc error: code = Unknown desc = failed to exec in container: failed to start exec "c3be98a7dbea03b09262710cba68fffa04c26d9da79ac5dffcc6d765b06e028a": OCI runtime exec failed: exec failed: unable to start container process: exec: "invalid": executable file not found in $PATH: unknown
Warning Unhealthy 4m31s kubelet Liveness probe errored: rpc error: code = Unknown desc = failed to exec in container: failed to start exec "ac5c0da936291c3f57bc339a11a3c2f1e90e5a5097c25c24e80f6359d56ff34c": OCI runtime exec failed: exec failed: unable to start container process: exec: "invalid": executable file not found in $PATH: unknown
Warning Unhealthy 4m26s kubelet Liveness probe errored: rpc error: code = Unknown desc = failed to exec in container: failed to start exec "b3a4599e5e3456084cfbb9ec385fd7dc7dbf4322e8fe02854fda771315e0669a": OCI runtime exec failed: exec failed: unable to start container process: exec: "invalid": executable file not found in $PATH: unknown
Warning Unhealthy 4m21s kubelet Liveness probe errored: rpc error: code = Unknown desc = failed to exec in container: failed to start exec "68ef4cbbaac59729d8790b2371ff7cfb83b189741c31baba9fd01f4f840fea73": OCI runtime exec failed: exec failed: unable to start container process: exec: "invalid": executable file not found in $PATH: unknown
Warning Unhealthy 6s (x51 over 4m16s) kubelet (combined from similar events): Liveness probe errored: rpc error: code = Unknown desc = failed to exec in container: failed to start exec "d178c3aa6517389b7571c5dc85609012898c226f1196864d53284439a55225f6": OCI runtime exec failed: exec failed: unable to start container process: exec: "invalid": executable file not found in $PATH: unknown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment