Complete the code to specify the update strategy as Recreate in a Deployment manifest.
strategy:
type: [1]The Recreate update strategy stops all old pods before creating new ones, ensuring no overlap.
Complete the Deployment YAML snippet to set the update strategy to Recreate.
apiVersion: apps/v1 kind: Deployment metadata: name: my-app spec: replicas: 3 [1]: type: Recreate
The strategy field defines how pods are updated in a Deployment.
Fix the error in the Deployment YAML to use the Recreate update strategy correctly.
spec: replicas: 2 strategy: [1]: Recreate
The correct key to specify the update strategy type is type.
Fill both blanks to complete the Deployment spec that uses Recreate strategy and sets replicas to 4.
spec: replicas: [1] strategy: type: [2]
Setting replicas to 4 and strategy type to Recreate ensures all pods are replaced at once with 4 replicas.
Fill all three blanks to create a Deployment spec with 2 replicas, Recreate update strategy, and a matchLabels selector.
spec: replicas: [1] selector: matchLabels: app: [2] strategy: type: [3]
This Deployment has 2 replicas, selects pods with label 'app: my-app', and uses the Recreate update strategy.