140 likes | 516 Views
( Kubernetes Certification Training: https://www.edureka.co/kubernetes-certification ) <br>This Edureka tutorial on "Kubernetes Deployment Tutorial " will help you understand the various concepts related to Deployment in Kubernetes. The topics included in this session are: <br><br>1. What is Kubernetes? <br>2. What is a Pod? <br>3. Replication Controller & ReplicaSet <br>4. Deployment Controllers <br>5. Deployment Use-Cases <br>DevOps Tutorial Blog Series: https://goo.gl/P0zAfF <br>Follow us to never miss an update in the future. <br><br>Instagram: https://www.instagram.com/edureka_learning/ <br>Facebook: https://www.facebook.com/edurekaIN/ <br>Twitter: https://twitter.com/edurekain <br>LinkedIn: https://www.linkedin.com/company/edureka
E N D
Topics For Today’s Session ❖ W h a t i s K u b e r n e t e s ? ❖ W h a t i s a P o d ? ❖ R e p l i c a t i o n C o n t r o l l e r ❖ R e p l i c a S e t ❖ D e p l o y m e n t C o n t r o l l e r s ❖ D e p l o y m e n t U s e - C a s e s Kubernetes Certification Training www.edureka.co/kubernetes-certification
What is Kubernetes? Open source and portable platform A container orchestration tool Automates scaling of workloads Groups containers into logical units Groups containers into logical units Written in Go programming language Google’s Brainchild. Now, donated to CNCF Kubernetes Certification Training www.edureka.co/kubernetes-certification
What is a Pod? Pod is the basic unit of Kubernetes. A pod can consist of one or more container images. Pod 1 Is widely used when a container runs on a physical machine on top of an operating system. Container Image Pod 2 Used for applications which are dependent on other applications/services for their functioning. Container Image Container Image Kubernetes Certification Training www.edureka.co/kubernetes-certification
Replication Controller Replication Controller is one of the key features of Kubernetes, and is responsible for managing the pod lifecycle. It owns the responsibility for making sure that the specified number of pod replicas are running at any given point of time. Kubernetes Certification Training www.edureka.co/kubernetes-certification
ReplicaSets ReplicaSet ensures how many replica of pod should be running. It can be considered as a replacement of replication controller. Kubernetes Certification Training www.edureka.co/kubernetes-certification
Deployment Controllers Deployment Controller are declarative in nature to provide the required information / updates to pods and ReplicaSets. Deployment Controller changes the actual state of the defined desired state of controller object. Kubernetes Certification Training www.edureka.co/kubernetes-certification
Deployment Use-Cases Create a Deployment Update Deployment Rollback Deployment Scale a Deployment A deployment is created. Once that is done the ReplicaSet automatically creates Pods in the background. Pause the Deployment A new ReplicaSet is created and the Deployment is updated. Each new ReplicSet updates the revision of Deployment. Used in case when the current state of the deployment is not stable. Only the container image gets updated.. Each and every deployment can be scaled up or scaled down based on the requirement. Pause the deployment to apply multiple fixes and then the deployment can be resumed. Use - Case 1 Use - Case 2 Use – Case 3 Use – Case 4 Use – Case 5 Kubernetes Certification Training www.edureka.co/kubernetes-certification
Use – Case: 1 : Create a Deployment Let us create a deployment and see how the ReplicaSets run in the background. Kubectl create deployment.yaml Kubectl get deployments Kubernetes Certification Training www.edureka.co/kubernetes-certification
Use – Case: 2 : Update Deployments Let us update the previous deployment and see how the container image gets updated. Kubectl edit deployment/deploymentname Kubectl rollout status deployment deploymentname Kubernetes Certification Training www.edureka.co/kubernetes-certification
Use – Case: 3 : Rollback Deployment Let us roll back to a previous deployment to see the history of Deployments. kubectl rollout history deployment/deploymentname kubectl rollout undo deployment/deploymentname Kubernetes Certification Training www.edureka.co/kubernetes-certification
Use – Case: 4 : Scale up a Deployment Let us scale up or scale down a deployment based on the requirements. kubectl scale deployment deploymentname --replicas=4 kubectl autoscale deployment nginx-deployment Kubernetes Certification Training www.edureka.co/kubernetes-certification
Use – Case: 5 : Pause a Deployment Let us pause a deployment, apply the required fixes and then resume back the deployment. kubectl rollout pause deployment/deploymentname kubectl rollout resume deploy/deploymentname Kubernetes Certification Training www.edureka.co/kubernetes-certification