Interview Prep/Networking/Containers, Kubernetes, IPv6 and packet captures

A `type: LoadBalancer` Service stays with `EXTERNAL-IP <pending>` forever.

BeginnerTroubleshootingContainers, Kubernetes, IPv6 and packet captures
Answer

Likely causes → No controller can provision a load balancer: a bare-metal/kind/minikube cluster without MetalLB, a missing or broken AWS Load Balancer Controller / cloud controller manager, missing IAM permissions, or subnets not tagged for LB discovery.

Diagnose →

kubectl describe svc myapp | tail -20                # events show the controller error
kubectl -n kube-system logs deploy/aws-load-balancer-controller | tail
aws ec2 describe-subnets --filters Name=tag:kubernetes.io/role/elb,Values=1 --query 'Subnets[].SubnetId'

Fix → Install MetalLB (bare metal) or the cloud's controller, fix its IAM role (IRSA/Pod Identity), and tag public subnets kubernetes.io/role/elb=1 (private: kubernetes.io/role/internal-elb=1).

Prevent → Include the LB controller and subnet tags in cluster provisioning code and smoke-test a LoadBalancer Service on every new cluster.

All Networking questions Roadmap: Networking for DevOps

More on Containers, Kubernetes, IPv6 and packet captures