0Pricing
Docker & Kubernetes for Developers · 강의

롤링 업데이트 및 롤백

Kubernetes 롤링 업데이트로 새 버전을 안전하게 배포하고, 배포 전략을 제어하며, 문제가 발생하면 즉시 이전 버전으로 되돌리는 방법을 배워 보세요.

롤링 업데이트 및 롤백은(는) CoddyKit의 무료 Docker & Kubernetes for Developers 강의입니다. 이것은 4개 중 4번째 강의입니다. 아래에서 전체 강의를 무료로 읽을 수 있으며, 내장 코드 에디터와 24/7 AI 튜터와 함께 브라우저에서 직접 실습할 수 있습니다. 이 강의는 Docker & Kubernetes for Developers 학습 경로의 일부이며, 진행 상황이 웹과 CoddyKit 앱에 동기화됩니다. Docker & Kubernetes for Developers 강의에는 총 4개의 강의가 포함되어 있습니다.

이 강의의 일부는 아직 번역되지 않았으며 영어로 표시됩니다.

Why Rolling Updates

Updating every Pod at once causes downtime. A rolling update replaces Pods gradually so the app stays available throughout the change.

Deployments Drive Updates

A Deployment owns a ReplicaSet. Changing the Pod template makes the Deployment create a new ReplicaSet and shift Pods from old to new at a controlled pace.

Triggering an Update

Change the image and the Deployment starts a rollout automatically.

kubectl set image deployment/web web=myapp:2.0

maxSurge and maxUnavailable

The strategy is tuned by two values: maxSurge (extra Pods allowed above desired) and maxUnavailable (Pods allowed to be down) during the rollout.

spec:
  strategy:
    type: RollingUpdate
    rollingUpdate:
      maxSurge: 1
      maxUnavailable: 0

Watching a Rollout

Track progress and confirm it finished cleanly.

kubectl rollout status deployment/web

Readiness Gates the Rollout

A new Pod only receives traffic once its readiness probe passes. Without good probes, broken Pods can still get traffic during a rollout.

Pausing and Resuming

Pause a rollout to verify a canary subset, then resume.

kubectl rollout pause deployment/web
kubectl rollout resume deployment/web

Viewing Rollout History

Kubernetes keeps a revision history you can inspect.

kubectl rollout history deployment/web

Rolling Back

If the new version misbehaves, roll back to the previous revision instantly.

kubectl rollout undo deployment/web

Rolling Back to a Specific Revision

Target an exact revision from the history list.

kubectl rollout undo deployment/web --to-revision=3

revisionHistoryLimit

Control how many old ReplicaSets are retained for rollback with revisionHistoryLimit in the Deployment spec.

spec:
  revisionHistoryLimit: 5

Quick Check

Test what you have learned.

Recap

You learned how Deployments perform rolling updates via ReplicaSets, how maxSurge/maxUnavailable and readiness probes control safety, and how to pause, watch, and rollout undo to recover fast.

자주 묻는 질문

“롤링 업데이트 및 롤백” 강의는 무료인가요?

네 — “롤링 업데이트 및 롤백” 전체 내용을 이 웹사이트에서 무료로 읽을 수 있습니다. 인터랙티브하게 실습하려면(내장 코드 에디터와 24/7 AI 튜터), CoddyKit PRO로 업그레이드하면 Docker & Kubernetes for Developers 강의 전체를 잠금 해제할 수 있습니다. Docker & Kubernetes for Developers 강의에는 총 4개의 강의가 포함되어 있습니다.

“롤링 업데이트 및 롤백”에서 뭘 배우나요?

Kubernetes 롤링 업데이트로 새 버전을 안전하게 배포하고, 배포 전략을 제어하며, 문제가 발생하면 즉시 이전 버전으로 되돌리는 방법을 배워 보세요. 브라우저에서 직접 실행하는 실습 코드로 Docker & Kubernetes for Developers을(를) 배우며, 24/7 AI 튜터가 강의를 진행하면서 질문에 답변해줍니다.

Docker & Kubernetes for Developers을(를) 시작하는 데 경험이 필요한가요?

사전 경험은 필요하지 않습니다. CoddyKit의 Docker & Kubernetes for Developers은(는) 초급자부터 고급 학습자까지를 위해 구성되어 있으므로, 여기서 시작하거나 처음부터 시작할 수 있으며 자신의 속도대로 진행할 수 있습니다. 이것은 4개 중 4번째 강의입니다.

“롤링 업데이트 및 롤백” 강의는 얼마나 걸리나요?

대부분의 CoddyKit 강의는 약 5~10분이 소요됩니다. 각 강의는 간결하고 인터랙티브하여 꾸준한 진행이 가능하며, 웹과 앱에서 중단한 부분부터 바로 시작할 수 있습니다.

이 Docker & Kubernetes for Developers 강의에서 코드를 작성하고 실행할 수 있나요?

네. 모든 Docker & Kubernetes for Developers 강의에는 내장 코드 에디터가 포함되어 있으므로, 브라우저에서 바로 실제 코드를 작성하고 실행한 후 즉시 AI 피드백을 받을 수 있습니다 — 로컬 설정이 필요 없습니다.

이 강의의 모든 강의

  1. Kubernetes Deployment 이해
  2. Service를 활용한 애플리케이션 노출
  3. 애플리케이션 확장 및 자동 복구
  4. 롤링 업데이트 및 롤백
← Docker & Kubernetes for Developers(으)로 돌아가기