Skip to content
Snippets Groups Projects
Unverified Commit 18ed0ffb authored by Mart Roosmaa's avatar Mart Roosmaa Committed by GitHub
Browse files

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

Closes #2196
parent b52efb52
No related branches found
No related tags found
No related merge requests found
...@@ -39,10 +39,12 @@ Also, the applications provide external links to themselves in alerts and variou ...@@ -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 = ...@@ -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'],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment