Kubernetes

Kubernetes is a container orchestration platform used to deploy, scale and manage containerized applications.

Pods

A Pod is the smallest deployable unit in Kubernetes.

A Pod can contain one or more containers. Containers inside the same Pod share networking and can share storage.

Pods are generally considered disposable. Applications should not depend on a specific Pod continuing to exist.

Deployments

A Deployment manages a desired number of application Pods.

If a Pod fails, Kubernetes can create a replacement Pod.

Deployments also support rolling updates, allowing a new application version to be deployed gradually.

Services

Pod IP addresses can change when Pods are replaced.

A Kubernetes Service provides a stable network endpoint for accessing a group of Pods.

The Service selects Pods using labels.

ConfigMaps

A ConfigMap stores non-sensitive application configuration separately from container images.

Secrets

A Kubernetes Secret is intended for sensitive configuration such as passwords, tokens and API credentials.

Applications can consume ConfigMaps and Secrets through environment variables or mounted files.

Health Checks

Kubernetes supports readiness and liveness probes.

A readiness probe determines whether a Pod is ready to receive traffic.

A liveness probe determines whether a container is healthy and should continue running.