- startupProbe가 실패 되도록 설정해서 Pod가 무한 재기동 상태가 되도록 설정해 보세요.
failureThreshold를 36에서 1로 설정
periodSeconds는 5이므로 현재 스크립트로는 app 초기화가 5초이내에 성공해야지만 startup probe를 넘어갈수 있음.


- 일시적 장애 상황(App 내부 부하 증가)가 시작 된 후, 30초 뒤에 트래픽이 중단되고, 3분 뒤에는 App이 재기동 되도록 설정해 보세요.
(아래 API를 날리면 readinessProbe와 livenessProbe가 동시에 실패하게 됩니다)




- Secret 파일(/usr/src/myapp/datasource/postgresql-info.yaml)이 존재하는지 체크하는 readinessProbe를 만들어 보세요.

cat /usr/src/myapp2/datasource/postgresql-info.yaml
커멘드 명령 기반으로 readinessprobe 설정을 해서 저 파일이 없으면 트래픽이 끊긴다.
10초마다 반복하고 3번 실패하면 끊긴다.
