How does one configure a ingressroute to expose a Stateful set pods dns entry trying to expose a HA Prometheus write endpoint
Have the following services:
prometheus-prometheus-stack-kube-prom-prometheus-0.prometheus-operated.prom:9090/
prometheus-prometheus-stack-kube-prom-prometheus-1.prometheus-operated.prom:9090/
And want to be able to forward paths to the correct instance:
- kind: Rule
match: PathPrefix(`/prometheus-a/api/v1/write`)
services:
- kind: Service
scheme: http
name: {{ what can i put here }}
port: 9090
- kind: Rule
match: PathPrefix(`/prometheus-b/api/v1/write`)
services:
- kind: Service
scheme: http
name: {{ what can i put here }}
port: 9090```