ReadOnlyMany: Mount the volume as read-only to many nodes.ReadWriteOnce: Mount the volume as read-write by a single node.PVC can be used across Deployments and StatefulSets with the help of Access Modes. Using PVC across Deployments and StatefulSets
The PVC will have information stored in it, and this leads to the sharing of information across all the pods. StatefulSet: It is used for “stateful applications”.Since there is no data in the volume that is shared, it leads to data exposure concerns. The volume (PVC) is shared across the pods. Deployments: It is used for “stateless applications”.If you delete or scale down the pods, volumes associated with them, will not be deleted, therefore data persists.ĭifference in attaching volumes for storage in a Deployment and StatefulSet Every node is given its own Persistent Volume.For example, if you create a StatefulSet with a name “flag”, it will create a pod with name flag-0, and for multiple replicas of a StatefulSet, the pod names would increment like flag-0,flag-1,flag-2, etc.Each pod has a persistent identifier, that it maintains across any scheduling. Unlike Deployments, StatefulSet maintains an identity for each of the pods.It manages the Deployment and scaling of a set of pods, and provides a guarantee of ordering and uniqueness of the pods. It is a Kubernetes resource, to manage S tateful applications.For e.g., Web Servers such as Apache, Nginx, Tomcat). It doesn’t provide storage for pods, hence it is used for only stateless applications (the ones that don’t care which network is being used, and don’t need any permanent storage.It doesn’t provide an identifier to pods.Rollback to earlier deployment revision - If due to some circumstance, the current state doesn’t turn out to be stable, then the deployment can be rolled back to earlier deployment revision.Each new ReplicaSet will now have the updated revision of the deployment. A new ReplicaSet is created and the deployment moves the pods from old ReplicaSet to the new one, at the controlled rate.
Declare the new state of the pods - You can update the PodTemplateSpec of the deployment manifest.You can check the status of the rollout to check if it is succeeded or not. To rollout ReplicaSet - It will create your pods in the background.
You can define deployments to update, create new ReplicaSets, or to remove existing deployments.The main role of a deployment is to provide declarative updates to both pod and ReplicaSet.ĭeployments help you to achieve the following: Deploymentsĭeployment is the easiest and most used resource for deploying an application. Some key Controller resources used for pod replication 1. The replicated pods are created and managed through Controllers. The pods are replicated to achieve Horizontal Scaling. For horizontal scaling (like running multiple instances), an application would need multiple pods. If a node, to which the pod is scheduled dies, then that pod will be scheduled for deletion after a timeout period.Ī pod represents a single unit in Kubernetes. Pods are considered to be ephemeral entities.
It can have one or more containers, with shared storage/network, and a specification for how to run the containers. A pod is the smallest deployable unit in Kubernetes which is actually a wrapper around containers. Kubernetes provides basic resources known as Pods. 12 more parts.Kubernetes is an open-source orchestration system for automating deployment, scaling, and management of containerised applications.įor more details on Kubernetes, checkout Guide to Kubernetes. 3 Kubernetes Architecture simply explained 4 How Kubernetes makes high availability, scalability, disaster recovery possible? - with simple animations ? 5 What is Minikube and Kubectl? ? Setup a Minikube cluster for Kubernetes Beginners 6 Kubectl Basic Commands | How to create and debug a pod in a Minikube cluster ? 7 Kubernetes YAML File simply explained for Beginners 8 Complete Guide to setting up your Application using Kubernetes Components 9 Kubernetes Namespaces Explained in 15 mins 10 Kubernetes Ingress Tutorial for Beginners ?? 11 What is Helm in Kubernetes? ??♂️ 12 Kubernetes Pods vs Containers | K8s Networking Basics ? 13 ConfigMap and Secret as Kubernetes Volumes?! ? 14 How to pull image from private Docker Registry in Kubernetes cluster ? 15 Deployment vs StatefulSet | Kubernetes StatefulSet simply explained 16 Kubernetes Services simply explainedġ Kubernetes simply explained for beginners 2 The only Kubernetes video you need to watch to understand more about K8s than most developers ??. 1 Kubernetes simply explained for beginners 2 The only Kubernetes video you need to watch to understand more about K8s than most developers ??.