Skip to content

Commit

Permalink
Update ingress docs to have more up to date code examples (#2199)
Browse files Browse the repository at this point in the history
Closes #2196
  • Loading branch information
roosmaa authored Aug 28, 2023
1 parent b52efb5 commit 18ed0ff
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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+: {
Expand Down Expand Up @@ -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'],
Expand Down

0 comments on commit 18ed0ff

Please sign in to comment.