In Kubernetes, when you use the Recreate update strategy for a Deployment, what is the behavior during an update?
Think about whether old pods and new pods run at the same time or not.
The Recreate strategy deletes all existing pods before starting new pods, causing downtime but ensuring no two versions run simultaneously.
Given this Deployment YAML snippet using Recreate strategy, what will be the status of pods during an update?
strategy: type: Recreate
Recreate means 'remove then create'.
With Recreate, Kubernetes deletes old pods before creating new ones, so no overlap occurs.
Which YAML snippet correctly configures a Deployment to use the Recreate update strategy?
Look for the correct field name and value for Recreate.
The correct field is strategy.type with value Recreate. Other options are either wrong field names or different strategies.
You notice your application becomes unavailable during Deployment updates using the Recreate strategy. Why does this happen?
Think about pod availability during the update process.
Recreate deletes all old pods before creating new ones, so there is a period with no pods running, causing downtime.
In which scenario is using the Recreate update strategy recommended instead of RollingUpdate?
Consider application compatibility with multiple versions running at once.
Recreate is best when running multiple versions simultaneously causes issues, such as with certain databases or stateful apps.