Kubernetes - SecretsYou want to create a Secret that contains a TLS certificate and key. Which type should you specify in the YAML manifest?Akubernetes.io/basic-authBkubernetes.io/tlsCkubernetes.io/dockerconfigjsonDOpaqueCheck Answer
Step-by-Step SolutionSolution:Step 1: Identify Secret types for TLSKubernetes has a special Secret type 'kubernetes.io/tls' for TLS certs and keys.Step 2: Compare with other typesOpaque is generic, dockerconfigjson is for Docker credentials, basic-auth is for basic authentication.Final Answer:kubernetes.io/tls -> Option BQuick 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 TLSConfusing with Docker or basic-auth typesOmitting the type field
Master "Secrets" in Kubernetes9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More Kubernetes Quizzes ConfigMaps - Using ConfigMaps as mounted volumes - Quiz 12easy Health Checks and Probes - Startup probe concept - Quiz 10hard Ingress - Ingress controllers (Nginx, Traefik) - Quiz 10hard Ingress - Host-based routing - Quiz 7medium Persistent Storage - Volumes vs Persistent Volumes - Quiz 5medium Persistent Storage - Reclaim policies (Retain, Delete) - Quiz 6medium Resource Management - CPU requests and limits - Quiz 6medium Resource Management - Quality of Service classes (Guaranteed, Burstable, BestEffort) - Quiz 15hard Scheduling - Jobs and CronJobs for batch processing - Quiz 11easy Secrets - Why Secrets manage sensitive data - Quiz 12easy