Overview
In Kubernetes, a Pod represents a single instance of a running process in your cluster. It can contain one or more containers that share the same network namespace, storage, and configuration.
Key Concepts
- Shared Resources: Containers within a Pod share the same IP address and port space, and can communicate via
localhost. - Ephemeral Nature: Pods are designed to be disposable. When a Pod fails, Kubernetes typically replaces it with a new one rather than trying to repair it.
- Sidecar Pattern: Often used to run helper containers alongside the main application container within the same Pod.
Lifecycle
Pods go through various phases: Pending, Running, Succeeded, Failed, and Unknown.