When creating ingress, no address is generated and when viewed from GKE dashboard it is always in theCreating ingress status.Describing the ingress does not show any events and I can not see any clues on GKE dashboard.
Has anyone has a similar issue or any suggestions on how to debug?
My deployment.yaml
apiVersion: extensions/v1beta1kind: Ingressmetadata: name: mobile-gateway-ingress spec: backend: serviceName: mobile-gateway-service servicePort: 80---apiVersion: v1kind: Servicemetadata: name: mobile-gateway-servicespec: ports: - protocol: TCP port: 80 targetPort: 8080 selector: app: mobile-gateway type: NodePort---apiVersion: apps/v1 kind: Deploymentmetadata: name: mobile-gateway-deployment labels: app: mobile-gatewayspec: selector: matchLabels: app: mobile-gateway replicas: 2 template: metadata: labels: app: mobile-gateway spec: containers: - name: mobile-gateway image: eu.gcr.io/my-project/mobile-gateway:latest ports: - containerPort: 8080Describing ingress shows no events:
mobile-gateway ➤ kubectl describe ingress mobile-gateway-ingress git:master*Name: mobile-gateway-ingressNamespace: defaultAddress:Default backend: mobile-gateway-service:80 (10.4.1.3:8080,10.4.2.3:8080)Rules: Host Path Backends ---- ---- -------- * * mobile-gateway-service:80 (10.4.1.3:8080,10.4.2.3:8080)Annotations: kubectl.kubernetes.io/last-applied-configuration: {"apiVersion":"extensions/v1beta1","kind":"Ingress","metadata":{"annotations":{},"name":"mobile-gateway-ingress","namespace":"default"},"spec":{"backend":{"serviceName":"mobile-gateway-service","servicePort":80}}}Events: <none>hello ➤With a simple LoadBalancer service, an IP address is given. The problem is only with the ingress resource.
- I have followed the examplecloud.google.com/kubernetes-engine/docs/tutorials/http-balancer line for line and again I have an ingress without address and stuck in state
Creating ingressTim Blackwell– Tim Blackwell2018-07-07 19:16:56 +00:00CommentedJul 7, 2018 at 19:16 - Can you please run
kubectl describe ingess NAME? The events section of this output may show an issue like you hit your Backends or IP Addresses quota.ahmet alp balkan– ahmet alp balkan2018-07-08 00:02:05 +00:00CommentedJul 8, 2018 at 0:02 - It's very strange that ingress description doesn't give you any events. Even when you describe it after like 5 minutes there are no events?suren– suren2018-07-08 13:58:47 +00:00CommentedJul 8, 2018 at 13:58
- @AhmetAlpBalkan Added output from describe, unfortunately no events.Tim Blackwell– Tim Blackwell2018-07-09 07:52:10 +00:00CommentedJul 9, 2018 at 7:52
- @suren This ingress has been "Creating" all weekend and still no events :(Tim Blackwell– Tim Blackwell2018-07-09 07:52:58 +00:00CommentedJul 9, 2018 at 7:52
3 Answers3
The problem in this case was I had did not include the addonHttpLoadBalancing when creating the cluster!My fault but was would have been noice to have an event informing me of this mistake in the ingress resource.
Strange that when I created a new cluster to follow the tutorial cloud.google.com/kubernetes-engine/docs/tutorials/http-balancer using default addons includingHttpLoadBalancing that I observed the same issue. Maybe I didn't wait long enough? Anyway, working now that I have included the addon.
4 Comments
HttpLoadBalancing is included in the clusters by default. If you specified--enable-addons flag, then you might need to list this add-on in there as well, but if you follow the tutorial without modifying the steps, you should be getting this add-on.HttpLoadBalancing add-on enabled on my cluster but my ingress is stuck in the "Creating Ingress" state for days. Any ideasgcloud container clusters create gara-cluster --zone=europe-west1-b --addons=HttpLoadBalancingTo complete the accepted answer, it's worth noting that it's possible to activate the addon on an already existing cluster (from the Google console).
However, itwill restart your clusterwith downtime (in my case, it took several minutes on an almost empty cluster). Be sure that's acceptable in your case, and do tests.
1 Comment
In my case, my Ingress configuration was bad! Runkubectl describe ingress and look for errors. You'll probably need to know aboutkubectl delete -f as well, which is the opposite ofkubectl apply -f (use this after you find your errors in the.yml files)
Comments
Explore related questions
See similar questions with these tags.



