Bird
0
0

What is the main purpose of using annotations in a Kubernetes Ingress resource?

easy📝 Conceptual Q11 of 15
Kubernetes - Ingress
What is the main purpose of using annotations in a Kubernetes Ingress resource?
ATo specify the IP address of the Ingress controller
BTo define the backend services for routing traffic
CTo customize the behavior of the Ingress controller without changing the main spec
DTo set resource limits for the Ingress pod
Step-by-Step Solution
Solution:
  1. Step 1: Understand the role of annotations in Kubernetes

    Annotations are key-value pairs used to add metadata or customize behavior without changing the main resource spec.
  2. Step 2: Apply this to Ingress resources

    In Ingress, annotations allow customization of controller behavior like SSL settings or rewrite rules without modifying the core routing rules.
  3. Final Answer:

    To customize the behavior of the Ingress controller without changing the main spec -> Option C
  4. Quick Check:

    Ingress annotations = customization without spec change [OK]
Quick Trick: Annotations customize Ingress behavior without touching main config [OK]
Common Mistakes:
  • Confusing annotations with service definitions
  • Thinking annotations set IP addresses
  • Assuming annotations control pod resources

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes