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
882484da
Commit
882484da
authored
3 years ago
by
Andrei Nistor
Browse files
Options
Downloads
Patches
Plain Diff
add grafana ldap example
parent
ce7007c5
Branches
Branches containing commit
Tags
v0.4.0
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/grafana-ldap.jsonnet
+36
-0
36 additions, 0 deletions
examples/grafana-ldap.jsonnet
with
36 additions
and
0 deletions
examples/grafana-ldap.jsonnet
0 → 100644
+
36
−
0
View file @
882484da
local
kp
=
(
import
'kube-prometheus/main.libsonnet'
)
+
{
values
+::
{
common
+:
{
namespace
:
'monitoring'
,
},
grafana
+:
{
config
+:
{
sections
:
{
'auth.ldap'
:
{
enabled
:
true
,
config_file
:
'/etc/grafana/ldap.toml'
,
allow_sign_up
:
true
,
},
},
},
ldap
:
|||
[[servers]]
host = "127.0.0.1"
port = 389
use_ssl = false
start_tls = false
ssl_skip_verify = false
bind_dn = "cn=admins,dc=example,dc=com"
bind_password = 'grafana'
search_filter = "(cn=%s)"
search_base_dns = ["dc=example,dc=com"]
|||
,
},
},
};
{
[
'grafana-'
+
name
]:
kp
.
grafana
[
name
]
for
name
in
std
.
objectFields
(
kp
.
grafana
)
}
This diff is collapsed.
Click to expand it.
Botaniker (Bot)
@botaniker
mentioned in commit
822f885d
·
3 years ago
mentioned in commit
822f885d
mentioned in commit 822f885d67d041069be2364e2b6905a21d20a88f
Toggle commit list
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
register
or
sign in
to comment