Skip to content

Add service.path to customize ingress path

Henrik Schnell requested to merge hschnell/auto-deploy-app:ingress-path into master

In my projects I have the frontend apps and the backend api's in different repositories and deployed independently into the same kubernetes cluster. I want to use ingress to forward requests to the frontend if the path is "/", but to the backend if the path starts with "/api".

Currently this is not possible with the auto-deploy-app, because the ingress path is hardcoded to "/". In my project I copied the auto-deploy-app helm chart into my backend repository and added a new chart value called service.path to customize the path from .gitlab/auto-deploy-values.yaml, so I can set the path to "/api".

This solution works perfectly, now both of my frontend and backend are deployed to the same domain but with different path prefixes. I think this customization option would be useful for everyone, so here is my merge request.

Merge request reports