Interview Prep/Networking/Rapid-Fire Commands

Rapid-fire: how do you list which IPs a Service's endpoints point to and compare with pods?

IntermediateProductionRapid-Fire Commands
Answer
kubectl get endpointslices -l kubernetes.io/service-name=web -o wide
kubectl get pods -l app=web -o wide

If the IPs differ or the list is empty, the selector or readiness is wrong.

All Networking questions Roadmap: Networking for DevOps

More on Rapid-Fire Commands