Posts

Showing posts from January, 2026

Kubernetes and Docker

What is the pod ? What is a Pod? A Pod is the smallest deployable unit in Kubernetes. It represents one or more containers that: Share the same network (IP, ports) Share storage volumes Run together on the same node Think of a Pod as a wrapper around containers. Manifest yaml file: apiVersion: v1 kind: Pod metadata: name: nginx-pod spec: containers: - name: nginx image: nginx ports: - containerPort: 80 2)what is the replicates? ReplicaSet (Ensure Desired Number of Pods) 🔹 What is a ReplicaSet? A ReplicaSet ensures a specified number of identical Pods are running at all times. 🔹 Why do we use ReplicaSets? High availability Self-healing Automatic Pod recreation =================== apiVersion: apps/v1 kind: ReplicaSet metadata: name: nginx-rs spec: replicas: 3 selector: matchLabels: app: nginx template: metadata: labels: app: nginx spec: containers: - name: nginx image: nginx ===================...