Kubernetes - IngressWhich of the following is the correct way to specify TLS in a Kubernetes Ingress YAML?Atls: - hosts: - example.com secret: tls-secretBtls: - hosts: - example.com secretName: tls-secretCtls: - host: example.com secret: tls-secretDtls: hosts: example.com secretName: tls-secretCheck Answer
Step-by-Step SolutionSolution:Step 1: Review TLS section syntaxThe correct syntax uses a list under tls with hosts as a list and secretName key.Step 2: Compare optionstls: - hosts: - example.com secretName: tls-secret matches the correct YAML structure with 'secretName' and hosts list.Final Answer:tls: - hosts: - example.com secretName: tls-secret -> Option BQuick 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 hostsIncorrect indentation or missing dash
Master "Ingress" in Kubernetes9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More Kubernetes Quizzes ConfigMaps - Using ConfigMaps as mounted volumes - Quiz 12easy ConfigMaps - Updating ConfigMaps and propagation - Quiz 11easy Health Checks and Probes - HTTP probe configuration - Quiz 11easy Ingress - Ingress controllers (Nginx, Traefik) - Quiz 7medium Networking - Why Kubernetes networking matters - Quiz 14medium Persistent Storage - PersistentVolume (PV) definition - Quiz 8hard Persistent Storage - Volumes vs Persistent Volumes - Quiz 13medium Resource Management - Horizontal Pod Autoscaler - Quiz 14medium Resource Management - Memory requests and limits - Quiz 12easy Secrets - Base64 encoding in Secrets - Quiz 9hard