Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GKE Ingress config requires a single host with multiple paths #94

Open
BennetVellaExient opened this issue Feb 12, 2025 · 0 comments
Open

Comments

@BennetVellaExient
Copy link

If you want to configure GKE Ingress with multiple backends for the same host, you must have a single rule with a single host and multiple paths. Otherwise, the GKE ingress controller provisions only one backend service

Source: https://cloud.google.com/kubernetes-engine/docs/concepts/ingress#multiple_backend_services

But the helm ingress.yaml creates multiple hosts:

- host: {{ .Values.windmill.baseDomain | quote }}

Can confirm that combining the paths under a single host correctly updated the load balancer to map properly

So as a practical example, what I was getting by default helm configuration:

 spec:
    rules:
    - host: windmill.blabla
      http:
        paths:
        - backend:
            service:
              name: windmill-lsp
              port:
                number: 3001
          path: /ws/
          pathType: Prefix
    - host: windmill.blabla
      http:
        paths:
        - backend:
            service:
              name: windmill-app
              port:
                number: 8000
          path: /
          pathType: Prefix

For GKE, the expected setup should be as follows:

 spec:
    rules:
    - host: windmill.blabla
      http:
        paths:
        - backend:
            service:
              name: windmill-lsp
              port:
                number: 3001
          path: /ws/
          pathType: Prefix
        - backend:
            service:
              name: windmill-app
              port:
                number: 8000
          path: /
          pathType: Prefix

I don't know if a shared host with multiple paths might then conflict with a different provider, but can confirm that GKE requires a single host.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant