Kubernetes Introduction - Part 2
Kubernetes Components:-
Pod:- Smallest unit of Kubernetes.
Node:- Virtual/Physical Machines.
Service:- Static IP address that can be linked to the pod.
Ingress:- Provides externally-reachable URLs to Kubernetes Services
ConfigMap:- Contains Kubernetes external configuration information as key-value pairs.
Secret:- Contains confidential information such as passwords, credentials and certificates. Kubernetes, by default, doesn't encrypt the secret. We need to use third-party tools to encrypt the Kubernetes secrets.
The ConfigMap and Secret are linked to the pod, allowing the pod to read data from ConfigMap and Secret.
Volumes:- Volumes are a way to attach storage to a container or pod, making it possible to store and access data across the lifecycle of containers, which helps in persisting data in the node. Kubernetes cluster doesn't manage data persistence.
Deployment:- It is a template/blueprint used to create, modify and manage the instances of the pods.
E.g.:- Replication, Scaling up/down the pods.
StatefulSet:-It is a blueprint used to create, modify and manage the instances of the database pods. Takes care of database consistency.
E.g.:- Replication, Scaling up/down the pods.
Pod v/s Deployment
Pod | Deployment |
Abstraction on top of a container | Abstraction on top of a pod |
Deployment v/s StatefulSet
Deployment | StatefulSet |
For Stateless Applications | For Stateleful Applications or Databases |
¯