Sign inSign up

tryoo0607/pod-lifecycle-test

By tryoo0607

•Updated about 1 year ago

Image
0

417

tryoo0607/pod-lifecycle-test repository overview

⁠Kubernetes Pod SIGTERM 테스트용 어플리케이션

GitHub - tryoo0607/pod-lifecycle-test Docker Hub - tryoo0607/pod-lifecycle-test


이 프로젝트는 Kubernetes Pod 종료 시그널(SIGTERM/SIGINT) 을 테스트하기 위한 간단한 예제 애플리케이션입니다. 애플리케이션은 실행 중 1초마다 경과 시간을 출력하며, SIGTERM을 수신하면 종료 루틴으로 진입하여 1초마다 카운트 로그를 남기도록 동작합니다.



⁠주요 기능

  • 실행 상태 로그

    • 애플리케이션 시작 시 1초마다 경과 시간 출력
  • SIGTERM 처리

    • SIGTERM 또는 SIGINT 시그널을 수신하면 종료 루틴으로 진입
    • 종료 루틴에서 1초마다 [종료 준비 중] 로그 출력
  • Kubernetes PreStop / Graceful Shutdown 실습 가능

    • preStop 훅과 terminationGracePeriodSeconds 설정으로 종료 흐름 테스트 가능

Tag summary

Content type

Image

Digest

sha256:31a76182c…

Size

2.8 MB

Last updated

about 1 year ago

docker pull tryoo0607/pod-lifecycle-test