Kubernetes - Advanced Deployment PatternsWhich annotation is correctly used to specify the percentage of traffic for a canary service in an NGINX Ingress?Anginx.ingress.kubernetes.io/canary: "false"Bnginx.ingress.kubernetes.io/canary-weight: "30"Cnginx.ingress.kubernetes.io/ssl-redirect: "30"Dnginx.ingress.kubernetes.io/rewrite-target: "/30"Check Answer
Step-by-Step SolutionSolution:Step 1: Identify annotation for canary traffic weightThe annotation 'nginx.ingress.kubernetes.io/canary-weight' sets traffic percentage for canary.Step 2: Confirm correct syntax and value typeThe value must be a string number like "30" to indicate 30% traffic.Final Answer:nginx.ingress.kubernetes.io/canary-weight: "30" -> Option BQuick Check:Canary traffic percentage annotation = canary-weight [OK]Quick Trick: Use canary-weight annotation to set traffic percent [OK]Common Mistakes:Using canary: false disables canary, not sets weightConfusing ssl-redirect with traffic weightMisusing rewrite-target for traffic splitting
Master "Advanced Deployment Patterns" in Kubernetes9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More Kubernetes Quizzes Helm Package Manager - Adding chart repositories - Quiz 15hard Monitoring and Logging - Kubernetes dashboard - Quiz 11easy Production Best Practices - Cluster upgrade strategies - Quiz 8hard Production Best Practices - Cluster upgrade strategies - Quiz 11easy Production Best Practices - Cost optimization in Kubernetes - Quiz 2easy RBAC and Security - Network policies for security - Quiz 9hard Service Mesh - Observability with service mesh - Quiz 13medium Service Mesh - Mutual TLS for service communication - Quiz 15hard Troubleshooting - Debugging with kubectl debug - Quiz 3easy Troubleshooting - Node troubleshooting - Quiz 2easy