CKAD — Deployments & Rolling Updates
Deployments & Rolling Updates — Chapter Overview
A Deployment is the most common way to run applications in Kubernetes. It manages a set of identical Pods — ensuring the desired number are always running, handling updates, and enabling rollbacks.
This chapter covers the Application Deployment domain (20% of the CKAD exam). You need to be fast at creating Deployments, performing rolling updates, rolling back, and scaling.
What You’ll Learn
| # | Topic | What’s Covered |
|---|---|---|
| 1 | Creating Deployments | Imperative & declarative creation, key fields, scaling |
| 2 | Rolling Updates | How rolling updates work, update strategies, recreate |
| 3 | Rollbacks | Rollout history, undo, pause & resume |
| 4 | Managing Deployments | Editing, annotations, monitoring ReplicaSets |
| 5 | Blue-Green & Canary | Blue-green with labels, simple canary with replicas |
| 6 | Hands-On Lab | Rolling update & rollback lab, pause/resume lab, practice questions |
CKAD Exam Relevance
| Area | What’s Tested |
|---|---|
| Creating Deployments | Imperative and declarative approaches |
| Rolling updates | kubectl set image, maxSurge, maxUnavailable |
| Rollbacks | kubectl rollout undo, revision history |
| Scaling | kubectl scale, replicas |
Prerequisites
Before starting this chapter, you should be comfortable with:
- Pod Design Patterns — Pods, labels, lifecycle
- Jobs & CronJobs — Batch workloads and restartPolicy