☸️Kubernetes Pod
Also known as Pod, K8s Pod, Pod (Kubernetes)
The smallest thing Kubernetes runs. It wraps one container, or a few that work as one.
Think of it like
It is like a pea pod. Each pea is a container, and the pod holds them close together.
Example
Emma's web pod holds the app container and a small helper that ships its logs. Both start together, stop together and share one address.
Why it matters
Every app in Kubernetes runs inside pods. Knowing that they come and go explains most of how Kubernetes works.
Definition
Example code
yaml
apiVersion: v1
kind: Pod
metadata:
name: nginx
spec:
containers:
- name: nginx
image: nginx:1.14.2
ports:
- containerPort: 80Common mistake
Key takeaways
- 1Smallest unit. Kubernetes places pods, not loose containers.
- 2Shared address. Containers in a pod share one network address.
- 3Throwaway. Dead pods are replaced, not repaired.