self-healing
정상적인 컨테이너로 어플리케이션 서비스를 하는것을 보장
정상적이지 않으면 컨테이너를 restart한다
설정 방법
- spec에 linessProbe 추가
httpGet
livenessProbe: httpGet: path:/ port:80
tcpSocket
livenessProbe: tcpSocket: port:8080
exec
livenessProbe: exec: command: - ${명령어}
'쿠버네티스' 카테고리의 다른 글
static pod / pod 리소스 / pod 변수 (0) | 2022.04.03 |
---|---|
init container / infra container (pause conatiner) (0) | 2022.03.28 |
쿠버네티스 명령어 정리 (0) | 2022.03.28 |
쿠버네티스 yaml 파일과 api 버전 (0) | 2022.03.20 |
쿠버네티스 아키텍처2 (0) | 2022.03.20 |