컨테이너가 정상적인지 아닌지를 체크하는것.
*포맷



*livenessProbe 실습예제

[문제풀이]
apiVersion: v1
kind: Pod
metadata:
name: liveness-exam
spec:
containers:
- name: busybox-container
image: busybox
args:
- /bin/sh
- -c
- touch /tmp/healthy; sleep 30; rm -rf /tmp/healthy; sleep 600
livenessProbe:
exec:
command:
- ls
- /tmp/healthy
initialDelaySeconds: 10
failureThreshold: 2
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 1
'Kubernetes' 카테고리의 다른 글
Replication Controller (0) | 2022.01.10 |
---|---|
H/W resource 관리 (0) | 2022.01.07 |
Kubernetes namespace (0) | 2022.01.05 |
Kubernetes Component (0) | 2022.01.05 |
kubectl command (0) | 2021.12.03 |