Bird
0
0

Why might an annotation like nginx.ingress.kubernetes.io/ssl-redirect not work as expected even if correctly set to "true"?

hard📝 Conceptual Q10 of 15
Kubernetes - Ingress
Why might an annotation like nginx.ingress.kubernetes.io/ssl-redirect not work as expected even if correctly set to "true"?
ABecause the Ingress controller ignores annotations if the Ingress class is not set properly
BBecause the annotation requires a backend service to support HTTPS
CBecause the annotation only works with LoadBalancer type services
DBecause the annotation must be set in the service, not the Ingress
Step-by-Step Solution
Solution:
  1. Step 1: Understand annotation dependency on Ingress class

    Annotations are processed only by the matching Ingress controller identified by the ingress class.
  2. Step 2: Recognize that wrong or missing ingress class causes annotation ignore

    If the ingress class is missing or different, the annotation is ignored even if set correctly.
  3. Final Answer:

    Because the Ingress controller ignores annotations if the Ingress class is not set properly -> Option A
  4. Quick Check:

    Ingress class mismatch causes annotation failure [OK]
Quick Trick: Annotations need correct ingress class to work [OK]
Common Mistakes:
  • Assuming backend HTTPS support is required
  • Thinking annotation depends on service type
  • Setting annotation on service instead of Ingress

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes