Complete the code to specify the deployment strategy as Canary in the Kubernetes deployment manifest.
strategy:
type: [1]The type field under strategy defines the deployment method. For canary deployments, it should be set to Canary.
Complete the code to define the percentage of traffic routed to the canary version.
spec:
strategy:
canary:
trafficPercentage: [1]The trafficPercentage field controls how much traffic goes to the canary pods. Typically, it starts low like 10%.
Fix the error in the command to apply the canary deployment manifest.
kubectl [1] -f canary-deployment.yamlThe kubectl apply command is used to create or update resources from a manifest file.
Fill both blanks to define a canary deployment with 3 replicas and 20% traffic.
spec: replicas: [1] strategy: canary: trafficPercentage: [2]
The replicas field sets the number of pod copies. The trafficPercentage under canary sets the traffic split to the canary pods.
Fill all three blanks to create a canary deployment manifest snippet with label 'app: web', 4 replicas, and 15% traffic.
metadata:
labels:
app: [1]
spec:
replicas: [2]
strategy:
canary:
trafficPercentage: [3]The app label identifies the application. replicas sets pod count. trafficPercentage controls canary traffic.