Bird
0
0

How do you specify the Recreate update strategy in a Kubernetes Deployment YAML manifest?

easy📝 Syntax Q3 of 15
Kubernetes - ReplicaSets and Deployments
How do you specify the Recreate update strategy in a Kubernetes Deployment YAML manifest?
AstrategyType: Recreate
BupdateStrategy: type: Recreate
CdeploymentStrategy: type: Recreate
Dstrategy: type: Recreate
Step-by-Step Solution
Solution:
  1. Step 1: Locate Strategy Field

    The update strategy is defined under the strategy field in the Deployment spec.
  2. Step 2: Correct YAML Syntax

    Use strategy: type: Recreate to set the update strategy.
  3. Final Answer:

    strategy: type: Recreate -> Option D
  4. Quick Check:

    Correct field is 'strategy' with 'type' key [OK]
Quick Trick: Use 'strategy.type: Recreate' under spec [OK]
Common Mistakes:
  • Using incorrect field names like updateStrategy
  • Placing strategy outside spec
  • Misspelling 'Recreate'

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes