Update ingress docs to have more up to date code examples (#2199)

Closes #2196
This commit is contained in:
Mart Roosmaa
2023-08-28 21:40:33 +02:00
committed by GitHub
parent b52efb525e
commit 18ed0ffb87

View File

@@ -39,10 +39,12 @@ Also, the applications provide external links to themselves in alerts and variou
```jsonnet
local kp =
(import 'kube-prometheus/kube-prometheus.libsonnet') +
(import 'kube-prometheus/main.libsonnet') +
{
_config+:: {
namespace: 'monitoring',
values+:: {
common+: {
namespace: 'monitoring',
},
},
prometheus+:: {
prometheus+: {
@@ -95,6 +97,7 @@ local kp =
},
};
// Output a kubernetes List object with both ingresses (k8s-libsonnet)
k.core.v1.list.new([
kp.ingress['prometheus-k8s'],
kp.ingress['basic-auth-secret'],