How can I use LoadBalancer type service on GCE with kubeadm?

Viewed 39

I made a kubernetes cluster using kubeadm on GCE(not GKE), and I am using Calico as CNI.

I want to make ingress-nginx LoadBalancer, so expect to use 80/443 ports for external connection instead of NodePort port range. But when I use LoadBalancer for service type, the EXTERNAL-IP is showing as <pending>.

$ kubectl get svc -n ingress-nginx
NAME                                 TYPE           CLUSTER-IP       EXTERNAL-IP   PORT(S)                      AGE
ingress-nginx-controller             LoadBalancer   10.105.43.38     <pending>     80:30269/TCP,443:31275/TCP   7d20h
ingress-nginx-controller-admission   ClusterIP      10.103.170.208   <none>        443/TCP                      7d20h

I searched many times about this issue, but many of articles were for GKE.

How can I use LoadBalancer on GCE?

1 Answers
Related