Recall & Review
beginner
What is the purpose of annotations in a Kubernetes Ingress resource?
Annotations add extra settings or instructions to customize how the Ingress controller handles traffic, like enabling SSL or setting timeouts.
Click to reveal answer
beginner
How do you specify an annotation in a Kubernetes Ingress YAML file?
Under the metadata section, use the 'annotations' field with key-value pairs, for example:<br>
metadata:<br> annotations:<br> nginx.ingress.kubernetes.io/rewrite-target: /
Click to reveal answer
beginner
Name one common annotation used to enable HTTPS redirect in NGINX Ingress.
The annotation 'nginx.ingress.kubernetes.io/ssl-redirect: "true"' forces HTTP requests to redirect to HTTPS.
Click to reveal answer
intermediate
What does the annotation 'nginx.ingress.kubernetes.io/proxy-read-timeout' control?
It sets how long the NGINX Ingress controller waits for a response from the backend service before timing out.
Click to reveal answer
advanced
Why might you use the annotation 'nginx.ingress.kubernetes.io/configuration-snippet'?
To add custom NGINX configuration snippets directly into the Ingress, allowing advanced tweaks not covered by standard annotations.
Click to reveal answer
Where do you place annotations in a Kubernetes Ingress manifest?
✗ Incorrect
Annotations belong under the metadata section of the Ingress manifest.
Which annotation enables HTTPS redirect in NGINX Ingress?
✗ Incorrect
The ssl-redirect annotation forces HTTP to HTTPS redirection.
What does 'nginx.ingress.kubernetes.io/rewrite-target' do?
✗ Incorrect
It rewrites the incoming request path to a different path for the backend.
If you want to increase the timeout waiting for backend response, which annotation is used?
✗ Incorrect
proxy-read-timeout controls how long NGINX waits for backend response.
Can annotations be used to add custom NGINX config snippets in Ingress?
✗ Incorrect
The configuration-snippet annotation allows adding custom NGINX config inside Ingress.
Explain how annotations customize the behavior of a Kubernetes Ingress controller.
Think about how you add special instructions to a recipe.
You got /4 concepts.
List and describe three common NGINX Ingress annotations and their effects.
Focus on security, URL handling, and timeout settings.
You got /3 concepts.