Bird
0
0

You suspect that kube-proxy is not correctly handling service traffic on a node. Which command would best help you confirm if kube-proxy is actively managing iptables rules?

hard📝 Application Q9 of 15
Kubernetes - Fundamentals
You suspect that kube-proxy is not correctly handling service traffic on a node. Which command would best help you confirm if kube-proxy is actively managing iptables rules?
Aiptables -L -n -v | grep KUBE-SERVICES
Bkubectl get pods --all-namespaces
Csystemctl status kubelet
Ddocker ps
Step-by-Step Solution
Solution:
  1. Step 1: Identify how kube-proxy manages traffic

    Kube-proxy manages service traffic by configuring iptables rules on the node.
  2. Step 2: Determine command to check iptables rules

    Using iptables -L -n -v | grep KUBE-SERVICES lists iptables chains related to Kubernetes services, showing if kube-proxy rules exist.
  3. Step 3: Evaluate other options

    kubectl get pods shows pod status but not iptables; systemctl status kubelet checks kubelet, not kube-proxy; docker ps shows containers, unrelated to kube-proxy.
  4. Final Answer:

    iptables -L -n -v | grep KUBE-SERVICES -> Option A
  5. Quick Check:

    Check iptables rules for kube-proxy chains [OK]
Quick Trick: Check iptables chains for kube-proxy rules [OK]
Common Mistakes:
  • Checking kubelet status instead of kube-proxy
  • Using kubectl commands unrelated to node iptables
  • Assuming container runtime commands show network rules

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes