7.5강 livenessProbe exec 방식에 관한 질문입니다
자세한 설명 감사합니다. 당시 진행했던 데이터는 다음과 같습니다.아래가 말씀드린 실습 부분인데, 헬스 체크했을 때 unhealthy가 2번 발생했고 killing은 발생하지 않은 모습입니다.[root@m-k8s ~]# k apply -f _Lecture_k8s_learning.kit/ch7/7.5/livenessProbe-exec-periodSeconds30.yaml pod/liveness-exec created [root@m-k8s ~]# watch "kubectl describe po liveness-exec | tail" Every 2.0s: kubectl describe po liveness-exec | tail Fri Mar 10 09:05:49 2023 node.kubernetes.io/unreachable:NoExecute op=Exists for 300s Events: Type Reason Age From Message ---- ------ ---- ---- ------- Normal Scheduled 2m21s default-scheduler Successfully assigned default/liveness-exec to w2-k8s Normal Pulling 2m17s kubelet Pulling image "sysnet4admin/tardy-nginx" Normal Pulled 2m15s kubelet Successfully pulled image "sysnet4admin/tardy-nginx" in 2.442951756s Normal Created 2m14s kubelet Created container tardy-nginx Normal Started 2m14s kubelet Started container tardy-nginx Warning Unhealthy 81s (x2 over 111s) kubelet Liveness probe failed: cat: /tmp/healthy-on: No such file or directory