A Deployment declares the desired state of an application and coordinates its ReplicaSet and pods. It supports reproducible creation, scaling, image updates, status inspection, and rollback through YAML and kubectl. section 3.3.3
Listing 3.4 pod.yaml: creating a pod
apiVersion: v1 #1
kind: Pod #2
metadata:
name: joker #3
spec:
containers:
- name: hello-joker #4
image: <docker_hub_repo>:hello-joker:v1 #5
ports:
- containerPort: 8083 #6
Use the deployment manifest to connect API version, object kind, metadata, pod template, container image, replica count, and label selector. section 3.3.3
A practical Deployment workflow includes:
- Create the Deployment with kubectl and verify READY, UP-TO-DATE, and AVAILABLE counts. section 3.3.3
- Change the container image and apply the manifest to trigger ReplicaSet scaling between revisions. section 3.3.3
- Inspect controller events and undo a rollout when the new revision is unsuitable. section 3.3.3









