Kubernetes service external ip pending Kubernetes service external ip pending kubernetes kubernetes

Kubernetes service external ip pending


It looks like you are using a custom Kubernetes Cluster (using minikube, kubeadm or the like). In this case, there is no LoadBalancer integrated (unlike AWS or Google Cloud). With this default setup, you can only use NodePort or an Ingress Controller.

With the Ingress Controller you can setup a domain name which maps to your pod; you don't need to give your Service the LoadBalancer type if you use an Ingress Controller.


If you are using Minikube, there is a magic command!

$ minikube tunnel

Hopefully someone can save a few minutes with this.

Reference linkhttps://minikube.sigs.k8s.io/docs/handbook/accessing/#using-minikube-tunnel


If you are not using GCE or EKS (you used kubeadm) you can add an externalIPs spec to your service YAML. You can use the IP associated with your node's primary interface such as eth0. You can then access the service externally, using the external IP of the node.

...spec:  type: LoadBalancer  externalIPs:  - 192.168.0.10