liveBook · Manning

Recreate strategy

A recreate strategy replaces an application version by stopping all existing instances before starting instances of the new version.

How 3 Manning books explain it

Kubernetes in Action, Second Edition

The Recreate strategy is a deployment update strategy that replaces all existing application pods at once before creating the updated pods.

How it is used
Replaces application pods when old and new versions cannot coexist and brief downtime is acceptable.
How deep it goes
Walks through manifest configuration and a three-pod replacement, including pod and ReplicaSet observations; identifies no Recreate tuning options.
Examples
Uses a three-replica image upgrade from version 0.5 to 0.6, with pod and ReplicaSet status listings.
What you can do after
Operate/configure it by setting `spec.strategy.type` to `Recreate` and changing the Pod template to trigger replacement.

Read how Kubernetes in Action, Second Edition explains Recreate strategy →

Acing the Certified Kubernetes Administrator Exam, Second Edition

A recreate strategy terminates all old workload instances before starting instances of the new version.

How it is used
Deploys versions that cannot safely run concurrently while accepting application downtime.
How deep it goes
Explains pod replacement order, YAML changes, speed, and downtime without detailing controller internals.
Examples
Uses kubectl edit deploy apache, strategy YAML fields, kubectl explain, and an update-process diagram.
What you can do after
Operate/configure a Deployment with Recreate and verify its rollout sequence using kubectl.

Read how Acing the Certified Kubernetes Administrator Exam, Second Edition explains Recreate strategy →

Kubernetes for Developers

A re-create strategy replaces a deployed workload by stopping all instances of the old version before starting instances of the new version.

How it is used
Uses direct replacement for development, staging, or services that cannot run two versions simultaneously.
How deep it goes
Explains Pod replacement, downtime, capacity, compatibility, and configuration, but stops short of detailed rollout internals.
Examples
Uses development, staging, legacy single-instance services, and a Kubernetes strategy field as concrete examples.
What you can do after
Operate/configure a Kubernetes Deployment with the Recreate strategy and judge its downtime and capacity tradeoffs.

Read how Kubernetes for Developers explains Recreate strategy →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.