Kubernetes Pod and Deployment manifests

3908
0

Kubernetes orchestrates containerized workloads at scale. A Pod is the smallest deployable unit, wrapping one or more containers. Deployments manage Pod replicas with declarative updates and rollbacks. The spec.replicas field sets desired Pod count. spec.selector.matchLabels links Deployments to Pods. Container specs define image, ports, resources (requests and limits), and env variables. readinessProbe and livenessProbe ensure healthy routing and automatic restarts. The strategy field controls rolling updates—maxSurge and maxUnavailable tune rollout speed. Resource requests guarantee scheduling, while limits cap usage. Labels and annotations organize and describe resources. Use kubectl apply -f for declarative management.