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>
Make sure L7 Load Balancing Add-On was turned on for your cluster in gcp.