startupProbe: 앱이 시작 중인지 확인 (재기동 판별)readinessProbe: 요청을 받을 준비가 되었는지 확인 (서비스 연결 판별)livenessProbe: 앱이 살아있는지 확인 (재기동 판별)livenessProbe, readinessProbe가 실행되지 않음failureThreshold: 실패 허용 횟수periodSeconds: 검사 주기startupProbe:
httpGet:
path: /healthz
port: 8080
failureThreshold: 30 # 30번 실패하면 재시작
periodSeconds: 10 # 10초마다 실행
initialDelaySeconds : 시작 전 대기 시간periodSeconds, failureThresholdreadinessProbe:
httpGet:
path: /ready
port: 8080
initialDelaySeconds: 5 # 시작 전 대기
periodSeconds: 5 # 5초마다 실행
failureThreshold: 3 # 3회 실패 시 서비스 연결 중단
앱이 정상적으로 실행 중인지 확인
반복적으로 실패하면 컨테이너를 자동 재시작
failureThreshold, periodSeconds, timeoutSecondslivenessProbe:
httpGet:
path: /healthz
port: 8080
periodSeconds: 10 # 10초마다 확인
failureThreshold: 3 # 3회 실패 시 재기동
timeoutSeconds: 2 #