Kubernetes - ServicesWhy might a ClusterIP service fail to route traffic even if pods are running and selectors match?Akube-proxy is not running or misconfigured on nodesBThe service type must be LoadBalancer for routingCPods must have hostNetwork enabled for ClusterIPDClusterIP services require external IPs to functionCheck Answer
Step-by-Step SolutionSolution:Step 1: Identify kube-proxy role in routingkube-proxy manages network rules for ClusterIP services; if it is down or misconfigured, routing fails.Step 2: Check other options for correctnessService type LoadBalancer is not required for internal routing, hostNetwork is unrelated, and external IPs are not needed for ClusterIP.Final Answer:kube-proxy is not running or misconfigured on nodes -> Option AQuick Check:kube-proxy must run for ClusterIP routing [OK]Quick Trick: Ensure kube-proxy runs for ClusterIP routing [OK]Common Mistakes:Thinking LoadBalancer type is neededAssuming pods need hostNetworkBelieving external IPs are required
Master "Services" in Kubernetes9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More Kubernetes Quizzes Kubernetes Fundamentals - What is Kubernetes - Quiz 2easy Kubernetes Fundamentals - Control plane components (API server, scheduler, controller manager, etcd) - Quiz 13medium Labels and Selectors - Using labels for service routing - Quiz 2easy Pods - Pod lifecycle states - Quiz 9hard ReplicaSets and Deployments - Rolling update strategy - Quiz 3easy ReplicaSets and Deployments - ReplicaSet definition - Quiz 2easy Services - Endpoints and endpoint slices - Quiz 8hard Services - Why Services provide stable networking - Quiz 6medium kubectl Essential Commands - kubectl apply vs create - Quiz 13medium kubectl Essential Commands - kubectl explain for API reference - Quiz 14medium