롤링 업데이트
애플리케이션/서비스 인스턴스를 새 버전으로 점진적으로 교체하는 배포 전략
구조와 동작 원리
구성 요소와 배치 원칙 (조사 기반 개념 설명 · 연결 순서나 토폴로지는 특정하지 않음)
Deployment, 다중 replica, RollingUpdate 전략이 핵심 구성요소
구·신 버전이 동일 클라이언트·큐·DB 레코드에 안전하게 공존해야 함
전체 중단 없이 인스턴스를 점진 교체해 다운타임 문제를 완화
기대 효과
업데이트 시 다운타임을 줄이거나 제거
트레이드오프
구·신 애플리케이션 버전 간 환경 격리가 없음
구·신 버전 공존으로 하위 호환성에 주의해야 함
운영 및 적용 가이드
종합 설명 · 원문 인용으로 검증된 항목과 구분됩니다. 실제 적용 전 확인이 필요합니다.
언제 사용하는가
무상태 웹/API 서비스처럼 구·신 버전이 동시에 트래픽을 처리해도 호환되는 워크로드에 적합하다. 다운타임을 줄이면서 새 버전을 점진적으로 검증할 때 사용한다.
시나리오
이커머스 주문 API가 로드밸런서 뒤 4대 VM 또는 Kubernetes 12개 replica로 운영되며 월 100만 요청을 처리한다. 신규 이미지는 쿠폰 오류 메시지만 바꾸고 DB 스키마 변경은 없다. 요구사항은 배포 중 가용성 유지와 5분 내 롤백이다. 한 번에 1대 또는 1개 Pod씩 교체하고 readiness 통과 후 트래픽을 돌리며 오류율과 지연을 관찰한다.
배치 원칙
- 로드밸런서/Service 뒤에 여러 replica를 배치해 항상 정상 인스턴스가 트래픽을 받게 한다
- Deployment/ReplicaSet이 구·신 Pod를 공존시키며 maxUnavailable/maxSurge로 교체 속도를 제한한다
- readiness/liveness probe와 minReadySeconds로 새 인스턴스 준비 후 트래픽을 투입한다
- DB 마이그레이션은 구·신 버전이 함께 읽고 쓸 수 있도록 하위 호환 순서로 적용한다
- 세션·큐·캐시는 외부 공유 저장소에 두거나 버전 간 호환되게 배치한다
온프레미스
온프레미스에서는 VM/베어메탈 로드밸런서 풀에서 인스턴스를 한 대씩 제외·교체·헬스체크 후 복귀시키고, 용량 여유와 롤백 이미지·구성 백업을 확보한다.
클라우드
클라우드에서는 관리형 오케스트레이터(ECS/EKS/AKS/GKE 등)의 롤링 배포를 사용하고, 서지 용량·헬스체크·오토스케일링·배포 알람을 구성하며 필요 시 블루/그린·카나리와 비교해 선택한다.
Kubernetes
Kubernetes에서는 Deployment strategy: RollingUpdate와 maxUnavailable/maxSurge, readinessProbe, minReadySeconds를 설정하고 rollout status/undo로 배포와 롤백을 관리한다.
장애 대응
대표 장애는 새 버전의 readiness 실패, 구·신 버전 비호환, DB 마이그레이션 불일치, 용량 부족으로 인한 연쇄 장애다. 영향 namespace/Deployment/릴리스 소유자와 시작 시각을 확인하고 롤백 또는 rollout pause/undo, 이미지 digest·리비전 기록, 헬스·에러율·지연·백로그 모니터링, 필요 시 트래픽 차단과 DB 복구 절차를 수행한다.
14개 관점별 근거
조사 당시 근거 보유 여부입니다. 출처의 정확성과 최신성을 별도로 판단하세요.
정의·개요근거 있음
애플리케이션/서비스 인스턴스를 새 버전으로 점진적으로 교체하는 배포 전략
incrementally replaces instances of an application or service with a new version해결하는 문제근거 있음
전체 중단 없이 인스턴스를 점진 교체해 다운타임 문제를 완화
address the downtime problem by incrementally replacing application instances with the new version주요 구성 컴포넌트·리소스근거 있음
Deployment, 다중 replica, RollingUpdate 전략이 핵심 구성요소
use a Kubernetes `Deployment` with multiple replicas and a `RollingUpdate` strategy데이터·에셋 배치 원칙근거 있음
구·신 버전이 동일 클라이언트·큐·DB 레코드에 안전하게 공존해야 함
old and new versions can safely coexist against the same clients, queues, and database records시나리오 예시근거 있음
로드밸런서 뒤 4대의 주문 서비스를 한 대씩 교체·헬스체크 후 복귀
The rollout removes the first machine from rotation, replaces version 1.0 with 2.0, checks its health부적합 상황·주의근거 있음
구·신 버전 공존으로 하위 호환성에 주의해야 함
requires careful attention to backward compatibility, as both old and new versions will coexist during the update온프레미스 관점(개발·배포·운영)근거 있음
VM/로드밸런서 기반 환경에서 인스턴스를 로테이션에서 빼고 교체·헬스체크 후 복귀
runs on four virtual machines behind a load balancer클라우드 관점(개발·배포·운영)근거 있음
Amazon ECS 등 클라우드 컨테이너를 이전 버전에서 새 버전으로 하나씩 교체
containers running previous versions of the application will be replaced one-by-one with containers running new versionsKubernetes 관점(개발·배포·운영)근거 있음
Deployment의 .spec.template 변경 시 롤링 업데이트가 트리거됨
Any change to the `.spec.template` field of a Deployment triggers a rolling update장애 대응 관점근거 있음
장애 시 영향 namespace·Deployment·릴리스 소유자·회귀 시작 시각을 먼저 파악
Start by finding the affected namespace, Deployment, release owner and start time of the regression장점근거 있음
업데이트 시 다운타임을 줄이거나 제거
reduce or eliminate downtime when you update your infrastructure or applications단점·트레이드오프근거 있음
구·신 애플리케이션 버전 간 환경 격리가 없음
there is no environment isolation between the old and new application versions대표 기술·도구근거 있음
Kubernetes Deployment의 기본 RollingUpdate 전략
RollingUpdate (default): gradually replaces old Pods with new ones추가 참고 문헌 (21)
- Implement zero-downtime deployments with blue/green, canary, and rolling strategies | Well-Architected Framework | HashiCorp Developer ↗
- Update a Deployment Without Downtime | Kubernetes ↗
- What is rolling update? Meaning, Examples, Use Cases & Complete Guide? – DevOps School ↗
- Rolling deployments - Overview of Deployment Options on AWS ↗
- CI/CD Deployment: Top 6 Strategies And How To Make Them Work | Octopus Deploy ↗
- Deployment Strategies: A Comprehensive Guide for 2026 ↗
- Module 4.3: Release Strategies (Theory) | KubeDojo ↗
- Rolling update in Grokking Software Architecture · liveBook ↗
- Zero-Downtime Migration to Azure Kubernetes Service (AKS) - Azure Kubernetes Service | Microsoft Learn ↗
- Reference Architecture: GKE Enterprise hybrid environment - part 2 - Dec '24 - Google Docs ↗
- Performing a Rolling Update ↗
- Azure Kubernetes Service (AKS) production upgrade strategies - Azure Kubernetes Service | Microsoft Learn ↗
- Managing Workloads | Kubernetes ↗
- Rolling Updates - kOps - Kubernetes Operations ↗
- KubeCon + CloudNativeCon North America 2024: Automated Multi-Cloud, Multi-Flavor Kube... ↗
- Shipping without downtime: rollouts and rollbacks ↗
- Kubernetes Deployment Rollback: Safe Recovery Steps ↗
- Rollback and Recovery: Rollout Undo, Digests and Migrations ↗
- Google SRE - Cascading Failures: Reducing System Outage ↗
- A Rolling Update, an Autoscaler, and a Missing Environment Variable: Anatomy of a Production Outage ↗
- How to Roll Back a Bad Change and Build Self-Healing Infrastructure: Safe Deploys, Smaller Blast Radius, Faster Recovery ↗