GKE: Ingress for internal load balance does not work

9/5/2020

1) I have GKE cluster and created an internal load balancer as specified in the following document. https://cloud.google.com/kubernetes-engine/docs/how-to/internal-load-balance-ingress

2) Used the same example as specified in the document.

3) The ingress is stuck in the creation mode. Here is the describe of the ingress.

kubectl -n test describe ing 
Name:             ilb-demo-ingress
Namespace:        test
Address:          
Default backend:  hostname:80 (10.12.3.20:9376)
Rules:
  Host  Path  Backends
  ----  ----  --------
  *     *     hostname:80 (10.12.3.20:9376)
Annotations:
  kubectl.kubernetes.io/last-applied-configuration:  {"apiVersion":"networking.k8s.io/v1beta1","kind":"Ingress","metadata":{"annotations":{"kubernetes.io/ingress.class":"gce-internal"},"name":"ilb-demo-ingress","namespace":"test"},"spec":{"backend":{"serviceName":"hostname","servicePort":80}}}

  kubernetes.io/ingress.class:  gce-internal
Events:                         <none>
  1. How do I debug and resolve the problem
-- B_B
google-kubernetes-engine
kubernetes
kubernetes-ingress

1 Answer

9/5/2020

Make sure L7 Load Balancing Add-On was turned on for your cluster in gcp.

-- Saurabh Nigam
Source: StackOverflow