Posts

Showing posts with the label Kubernetes

Finally clarified with PODs in Kubernetes

Image
PODs in Kubernetes What is POD? How PODs are deployed in Kubernetes? What instances we will use in multiple containers in single POD? How does POD networking works? Inter-POD networking and Intra-POD networking? POD Life Cycle. 1.What is POD? Atomic unit of scheduling in Kubernetes world. So, when we get into the watch vitalization world the atomic unit of scheduling is virtual machine. If you want to deploy any app then you need to put your code and related config in so the virtual machine and then deployed. Next, when it comes to the containerization world generally we use containers and in the same way we use POD in Kubernetes. So, at a high-level POD is a basic unit of scheduling in Kubernetes.                                                                       ...

Whats in when we do a Kubernetes Deployments

Kubernetes Deployments ​ Why use a Kubernetes Deployment? A Deployment resource uses a ReplicaSet to manage the pods. However, it handles updating them in a controlled way. Let’s dig deeper into Deployment Controllers and patterns. Your First Deployment Let’s have a quick demonstration of what Kubernetes Deployments can do. The following Deployment definition deploys four pods with Apache as their hosted application: apiVersion : apps/v1 kind : Deployment metadata : name : apache - deployment labels : role : webserver spec : replicas : 4 selector : matchLabels : role : webserver template : metadata : labels : role : webserver spec : containers : - name : frontend image : httpd ports : - containerPort : 80 Copy Save the above in a file. In this example, I named the file apache_deployment.yaml. Apply the definition to the cluster by running th...