diff --git a/examples/ingress-one-to-many.jsonnet b/examples/ingress-one-to-many.jsonnet index 96b28d418d73e7aab8a9e373a002a2bc9d932321..ee56090fa64a6e74b5d05a3ed36867529a40707d 100644 --- a/examples/ingress-one-to-many.jsonnet +++ b/examples/ingress-one-to-many.jsonnet @@ -14,7 +14,7 @@ local ingress(name, namespace, rules) = { }; local kp = - (import 'kube-prometheus/kube-prometheus.libsonnet') + + (import 'kube-prometheus/main.libsonnet') + { _config+:: { namespace: 'monitoring', @@ -48,47 +48,49 @@ local kp = 'kube-prometheus': ingress( 'kube-prometheus', $._config.namespace, - [{ - host: 'alertmanager.example.com', - http: { - paths: [{ - backend: { - service: { - name: 'alertmanager-main', - port: 'web', + [ + { + host: 'alertmanager.example.com', + http: { + paths: [{ + backend: { + service: { + name: 'alertmanager-main', + port: 'web', + }, }, - }, - }], + }], + }, }, - }, - { - host: 'grafana.example.com', - http: { - paths: [{ - backend: { - service: { - name: 'grafana', - port: 'http', + { + host: 'grafana.example.com', + http: { + paths: [{ + backend: { + service: { + name: 'grafana', + port: 'http', + }, }, - }, - }], + }], + }, }, - }, - { - host: 'alertmanager.example.com', - http: { - paths: [{ - backend: { - service: { - name: 'prometheus-k8s', - port: 'web', + { + host: 'alertmanager.example.com', + http: { + paths: [{ + backend: { + service: { + name: 'prometheus-k8s', + port: 'web', + }, }, - }, - }], + }], + }, }, - },] + ] ), - + }, } + { // Create basic auth secret - replace 'auth' file with your own