External ip pending Kubernetes Load balancer
Please try to run:
kubectl describe svc <service-name>
And check for errors / warnings.
An example of a possible error is described under the events field in the example output below - (SyncLoadBalancerFailed - could not find any suitable subnets for creating the ELB):
Name: some-serviceNamespace: defaultLabels: <none>Annotations: kubectl.kubernetes.io/last-applied-configuration: {"apiVersion":"v1","kind":"Service","metadata":{"annotations":{},"name":"some-service","namespace":"default"},"spec":{"ports":[{"port":80,...Selector: app=someType: LoadBalancerIP: 10.100.91.19Port: <unset> 80/TCPTargetPort: 5000/TCPNodePort: <unset> 31022/TCPEndpoints: <none>Session Affinity: NoneExternal Traffic Policy: ClusterEvents: Type Reason Age From Message ---- ------ ---- ---- ------- Normal EnsuringLoadBalancer 68s (x8 over 11m) service-controller Ensuring load balancer Warning SyncLoadBalancerFailed 67s (x8 over 11m) service-controller Error syncing load balancer: failed to ensure load balancer: could not find any suitable subnets for creating the ELB