mirror of
https://github.com/prometheus-operator/kube-prometheus.git
synced 2025-08-07 06:47:15 +02:00
Update ingress docs to have more up to date code examples (#2199)
Closes #2196
This commit is contained in:
parent
b52efb525e
commit
18ed0ffb87
@ -39,10 +39,12 @@ Also, the applications provide external links to themselves in alerts and variou
|
|||||||
|
|
||||||
```jsonnet
|
```jsonnet
|
||||||
local kp =
|
local kp =
|
||||||
(import 'kube-prometheus/kube-prometheus.libsonnet') +
|
(import 'kube-prometheus/main.libsonnet') +
|
||||||
{
|
{
|
||||||
_config+:: {
|
values+:: {
|
||||||
namespace: 'monitoring',
|
common+: {
|
||||||
|
namespace: 'monitoring',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
prometheus+:: {
|
prometheus+:: {
|
||||||
prometheus+: {
|
prometheus+: {
|
||||||
@ -95,6 +97,7 @@ local kp =
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Output a kubernetes List object with both ingresses (k8s-libsonnet)
|
||||||
k.core.v1.list.new([
|
k.core.v1.list.new([
|
||||||
kp.ingress['prometheus-k8s'],
|
kp.ingress['prometheus-k8s'],
|
||||||
kp.ingress['basic-auth-secret'],
|
kp.ingress['basic-auth-secret'],
|
||||||
|
Loading…
Reference in New Issue
Block a user