concept

Deployment scaling and source of truth

The scale operation updates the live replica target. A later apply of a manifest containing a different replica value can override it.

Formal Syntax & Structure

kubernetes syntaxkubernetes
Deployment scaling and source of truth

Working Example

Example Snippetkubernetes
kubectl --kubeconfig ./lab.kubeconfig --context bytemind-lab -n book-lab scale deployment/catalog --current-replicas=2 --replicas=5
Kubernetes Reference