Kubernetes - Advanced Deployment PatternsWhich annotation is commonly used in Kubernetes Ingress to split traffic by percentage for A/B testing?Anginx.ingress.kubernetes.io/canary-weightBnginx.ingress.kubernetes.io/rewrite-targetCnginx.ingress.kubernetes.io/ssl-redirectDnginx.ingress.kubernetes.io/proxy-body-sizeCheck Answer
Step-by-Step SolutionSolution:Step 1: Identify annotations for traffic splittingThe annotation 'nginx.ingress.kubernetes.io/canary-weight' is used to specify the percentage of traffic sent to the canary version.Step 2: Differentiate from other annotationsOther annotations like rewrite-target or ssl-redirect serve different purposes unrelated to traffic splitting.Final Answer:nginx.ingress.kubernetes.io/canary-weight -> Option AQuick Check:Canary weight = traffic percentage [OK]Quick Trick: Look for 'canary-weight' to split traffic by percent [OK]Common Mistakes:Using rewrite-target for traffic splittingConfusing SSL redirect with traffic controlIgnoring canary annotations
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