Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
kube-prometheus
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
prometheus-operator
kube-prometheus
Commits
18ed0ffb
Unverified
Commit
18ed0ffb
authored
Aug 28, 2023
by
Mart Roosmaa
Committed by
GitHub
Aug 28, 2023
Browse files
Options
Downloads
Patches
Plain Diff
Update ingress docs to have more up to date code examples (#2199)
Closes #2196
parent
b52efb52
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/customizations/exposing-prometheus-alertmanager-grafana-ingress.md
+6
-3
6 additions, 3 deletions
...tions/exposing-prometheus-alertmanager-grafana-ingress.md
with
6 additions
and
3 deletions
docs/customizations/exposing-prometheus-alertmanager-grafana-ingress.md
+
6
−
3
View file @
18ed0ffb
...
@@ -39,11 +39,13 @@ Also, the applications provide external links to themselves in alerts and variou
...
@@ -39,11 +39,13 @@ 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
+::
{
common
+:
{
namespace
:
'monitoring'
,
namespace
:
'monitoring'
,
},
},
},
prometheus
+::
{
prometheus
+::
{
prometheus
+:
{
prometheus
+:
{
spec
+:
{
spec
+:
{
...
@@ -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'
],
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment