![thumbnail](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2F0Rh4U%2FbtsvbD02sPO%2FDAOG5hmoJ7GtJZxy6QA330%2Fimg.png)
[Kubernetes] Rolling Update 이슈와 해결 과정
2023. 9. 21. 18:18
Infrastructure/Kubernetes
최근 쿠버네티스에서 운영되는 프로덕션 애플리케이션을 배포(rolling update)하는 과정에서 클라이언트 요청이 중단되거나 거부되는 현상이 발생했습니다("client connection refused" 등의 에러 발생). 분명 deployment.yaml에 rollingUpdate를 수행하도록 설정했지만, 배포 과정에서 순단현상이 발생했습니다. spec: strategy: type: RollingUpdate rollingUpdate: maxSurge: 1 maxUnavailable: 0 replicas: 4 위 설정에서의 배포는 다음과 같이 동작합니다. 총 4개의 pod가 실행됩니다. 배포 시 새로운 버전의 반영은 순차적으로 수행됩니다. 새로운 pod 생성 새로운 pod가 준비상태(Ready)가 되면..