Bird
0
0

You want to create a Secret that contains a TLS certificate and key. Which type should you specify in the YAML manifest?

hard📝 Application Q8 of 15
Kubernetes - Secrets
You want to create a Secret that contains a TLS certificate and key. Which type should you specify in the YAML manifest?
Akubernetes.io/basic-auth
Bkubernetes.io/tls
Ckubernetes.io/dockerconfigjson
DOpaque
Step-by-Step Solution
Solution:
  1. Step 1: Identify Secret types for TLS

    Kubernetes has a special Secret type 'kubernetes.io/tls' for TLS certs and keys.
  2. Step 2: Compare with other types

    Opaque is generic, dockerconfigjson is for Docker credentials, basic-auth is for basic authentication.
  3. Final Answer:

    kubernetes.io/tls -> Option B
  4. Quick Check:

    TLS Secret type = kubernetes.io/tls [OK]
Quick Trick: Use type kubernetes.io/tls for TLS certs [OK]
Common Mistakes:
  • Using generic Opaque type for TLS
  • Confusing with Docker or basic-auth types
  • Omitting the type field

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes