I have the following applications (deployed with k8s) as helm subcharts:
This is nested under an umbrella chart.
The custom-webapp is the main application and should be routed to at mywebsite.com
I'm wondering how do I set up my ingress so that:
mywebsite.com routes to custom-webapp:5000mywebsite.com/services/app routes to custom-application:5000mywebsite.com/api/ routes to custom-api:5000mywebsite.com/services/airflow routes to airflow:8080mywebsite.com/services/prometheus routes to prometheus:9090mywebsite.com/services/grafana routes to grafana:3000Do I have 1 main ingress at the umbrella chart which routes to services exposed through subcharts? (the one i'm leaning most towards) OR Do I have multiple ingresses for each application ? In this case how do I tie them together?
This is hosted on GKE, and I'd kinda prefer to not pay for 1 ingress per application.
You need to configure a collection of rules that will define which connections reach which services. You can aggregate several Ingress rules into a single Ingress definition.
If you are using Kubernetes 1.6+ you can check out this documentation regarding an nginx-ingress deployment on a Kubernetes cluster using the Helm package manager.