Bird
0
0

Which of the following is the correct way to specify TLS in a Kubernetes Ingress YAML?

easy📝 Configuration Q12 of 15
Kubernetes - Ingress
Which of the following is the correct way to specify TLS in a Kubernetes Ingress YAML?
Atls: - hosts: - example.com secret: tls-secret
Btls: - hosts: - example.com secretName: tls-secret
Ctls: - host: example.com secret: tls-secret
Dtls: hosts: example.com secretName: tls-secret
Step-by-Step Solution
Solution:
  1. Step 1: Review TLS section syntax

    The correct syntax uses a list under tls with hosts as a list and secretName key.
  2. Step 2: Compare options

    tls: - hosts: - example.com secretName: tls-secret matches the correct YAML structure with 'secretName' and hosts list.
  3. Final Answer:

    tls: - hosts: - example.com secretName: tls-secret -> Option B
  4. Quick Check:

    Correct TLS YAML uses secretName and hosts list [OK]
Quick Trick: Use 'secretName' and list under 'hosts' in tls section [OK]
Common Mistakes:
  • Using 'secret' instead of 'secretName'
  • Not using a list for hosts
  • Incorrect indentation or missing dash

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes