Bird
0
0

You want to mount a TLS secret into a pod as files and also use a docker-registry secret for pulling images. How should you configure the pod spec?

hard📝 Workflow Q9 of 15
Kubernetes - Secrets
You want to mount a TLS secret into a pod as files and also use a docker-registry secret for pulling images. How should you configure the pod spec?
AMount both secrets as volumes in the pod spec
BMount the TLS secret as a volume and specify the docker-registry secret in imagePullSecrets
CUse imagePullSecrets for TLS secret and mount docker-registry secret as volume
DCombine both secrets into one and mount as a volume
Step-by-Step Solution
Solution:
  1. Step 1: Understand pod secret usage

    TLS secrets are mounted as volumes for file access; docker-registry secrets are referenced in imagePullSecrets for image pulling.
  2. Step 2: Apply correct configuration

    Mount TLS secret as volume, specify docker-registry secret in imagePullSecrets field.
  3. Final Answer:

    Mount the TLS secret as a volume and specify the docker-registry secret in imagePullSecrets -> Option B
  4. Quick Check:

    TLS secrets = volumes; docker-registry secrets = imagePullSecrets [OK]
Quick Trick: Use imagePullSecrets for registry, volumes for TLS secrets [OK]
Common Mistakes:
  • Mounting docker-registry secrets as volumes
  • Using imagePullSecrets for TLS secrets
  • Combining secrets into one volume

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes