Deployment

The Kubernetes object that keeps a chosen number of identical pods running and replaces them gradually when you change their template.

In more detail

A Deployment owns ReplicaSets, and each ReplicaSet owns pods, so deleting one of its pods just prompts a replacement. Changing the pod template starts a rollout to a new ReplicaSet, and the old one is kept for rollback. Its selector must match the labels in its template.

Examples

kubectl get deploy,rs
kubectl wait --for=condition=available deploy/web

Related terms

Taught in

References

Certification courses