Kubernetes - ServicesWhy does Kubernetes not allow selectors in ExternalName services?ABecause ExternalName services require manual pod managementBBecause selectors are deprecated in all service typesCBecause selectors cause conflicts with cluster IP allocationDBecause ExternalName services do not select pods but map to external DNS namesCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand role of selectors in servicesSelectors are used to route traffic to pods inside the cluster.Step 2: Understand ExternalName service behaviorExternalName services do not route to pods but map service names to external DNS names, so selectors are irrelevant and disallowed.Final Answer:Because ExternalName services do not select pods but map to external DNS names -> Option DQuick Check:Selectors disallowed because ExternalName maps DNS, not pods [OK]Quick Trick: Selectors route pods; ExternalName maps DNS only [OK]Common Mistakes:Thinking selectors are deprecatedAssuming selectors affect cluster IPBelieving ExternalName manages pods
Master "Services" in Kubernetes9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More Kubernetes Quizzes Kubernetes Fundamentals - Setting up a local cluster (minikube, kind) - Quiz 12easy Kubernetes Fundamentals - Why container orchestration matters - Quiz 7medium Labels and Selectors - Adding labels to resources - Quiz 15hard Namespaces - Switching namespace context - Quiz 8hard Namespaces - Switching namespace context - Quiz 3easy Namespaces - Limit ranges for defaults - Quiz 8hard Pods - Sidecar container pattern - Quiz 2easy Pods - Why Pods are the smallest deployable unit - Quiz 8hard kubectl Essential Commands - kubectl get for listing resources - Quiz 9hard kubectl Essential Commands - kubectl logs for debugging - Quiz 11easy