replicas sets how many pods to run, selector.matchLabels connects the Deployment to its pods, and template is the pod spec.kubectl scale deployment webapp --replicas=5 or declaratively by editing the YAML and applying.maxSurge: 1 allows one extra pod during the update. maxUnavailable: 1 allows one pod to be down at a time.nginx:1.24 to nginx:1.25 and apply. Watch the animated rolling update in the visualizer.kubectl rollout undo deployment/webapp rolls back one revision. Add --to-revision=1 to go to a specific version.