Skip to content

Commit 18ed0ff

Browse files
authored
Update ingress docs to have more up to date code examples (prometheus-operator#2199)
Closes prometheus-operator#2196
1 parent b52efb5 commit 18ed0ff

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

docs/customizations/exposing-prometheus-alertmanager-grafana-ingress.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,12 @@ Also, the applications provide external links to themselves in alerts and variou
3939

4040
```jsonnet
4141
local kp =
42-
(import 'kube-prometheus/kube-prometheus.libsonnet') +
42+
(import 'kube-prometheus/main.libsonnet') +
4343
{
44-
_config+:: {
45-
namespace: 'monitoring',
44+
values+:: {
45+
common+: {
46+
namespace: 'monitoring',
47+
},
4648
},
4749
prometheus+:: {
4850
prometheus+: {
@@ -95,6 +97,7 @@ local kp =
9597
},
9698
};
9799
100+
// Output a kubernetes List object with both ingresses (k8s-libsonnet)
98101
k.core.v1.list.new([
99102
kp.ingress['prometheus-k8s'],
100103
kp.ingress['basic-auth-secret'],

0 commit comments

Comments
 (0)