kubernetes tutorial | Kubernetes Deployments | Demo: Deployments, Rollouts, Rollbacks, Upgrade

Опубликовано: 12 Июнь 2026
на канале: VSPARKZ
1,208
22

Certified Kubernetes Administrator
*************************************
kubernetes tutorial | Kubernetes Deployments | Demo: Deployments, Rollouts, Rollbacks, Upgrade

Description:
*************
In this video, you are going to learn the concepts of Deployment & a Demo on How to Create Deployment, Rollouts, Rollbacks, Upgrades using kubectl commands.

1. Production Grade Application Deployment
2. Kubernetes Deployment
3. Benefits of using Kubernetes Deployments
4. How to create a Deployment ?
5. Deployment Yaml Manifest
6. DEMO: Create Deployments, Rollouts, Rollbacks, Upgrade

For suggestions/feedback/doubts contact
email: [email protected]

Happy Learning !!!


===========================================================================================
USEFUL LINKS:
****************

Deployment:
--------------------
https://kubernetes.io/docs/concepts/w...

API References:
----------------------------
https://kubernetes.io/docs/reference/...

Kubectl Command Reference:
-------------------------------------------------
https://kubernetes.io/docs/reference/...

==========================================================================================
#cka #kubernetes #k8s #containers

DEMO STEPS:
***************
Step 1: Access & Inspect the Kubernetes Cluster
------------------------------------------------------------------------------

$ kubectl cluster-info

$ kubectl get nodes

$ kubectl get pods -n kube-system

Step 2: Create a Deployment Manifest (kubectl commands)
----------------------------------------------------------------------------------------------

$ kubectl create deployment frontend --image=nginx:1.20.0 --replicas=1 --dry-run=client -o yaml

Copy the output content and create a file frontend.yaml

Step 3: Deploy & Inspect the Deployment Rollout
------------------------------------------------------------------------------

$ kubectl apply -f frontend.yaml

$ kubectl rollout history deployment frontend

$ kubectl rollout status deployment frontend

Step 4: Scale the Deployment (Replica=2)
-------------------------------------------------------------------

Either you can edit the resource itself using kubectl commands

Or you can modify the manifest yaml file and apply the same (Recommended)

Step 5: Update the Image to another Version & Inspect the Deployment
-------------------------------------------------------------------------------------------------------------------

Either you can edit the resource itself using kubectl commands
Or you can modify the manifest yaml file and apply the same (Recommended)

Step 6: Rollback to a Previous Revision
----------------------------------------------------------------

$ kubectl rollout history deployment frontend --revision=2
$ kubectl rollout history deployment frontend --revision=1

$ kubectl rollout undo deployment frontend

Step 7: Pause a rollout and make some Updates to the Pod template
----------------------------------------------------------------------------------------------------------------
$ kubectl rollout pause deployment frontend

$ kubectl set image deployment frontend nginx=nginx:1.20.2

Step 8: Resume the Deployment
-----------------------------------------------------

$ kubectl rollout resume deployment frontend

========================================================================================================================