mag*_*nes 1 ldap grafana kubernetes kubernetes-helm
我是 Kubernetes 和 Helm 的新手,尝试使用我自己的 LDAP自定义 stable/grafana Helm 图表(https://github.com/helm/charts/tree/master/stable/grafana)。图表文件的auth.ldap一部分grafana.ini和ldap部分有什么区别values.yaml?如何配置 LDAP 主机地址和凭据?
小智 6
在 Grafana 上启用 LDAP 配置。您需要更新这两个部分。
在 values.yaml 中,有两个部分grafana.ini和ldap。要启用 LDAP,您需要更新这两个部分。检查以下:
首先grafana.ini
grafana.ini:
paths:
data: /var/lib/grafana/data
logs: /var/log/grafana
plugins: /var/lib/grafana/plugins
provisioning: /etc/grafana/provisioning
analytics:
check_for_updates: true
log:
mode: console
grafana_net:
url: https://grafana.net
## LDAP Authentication can be enabled with the following values on grafana.ini
## NOTE: Grafana will fail to start if the value for ldap.toml is invalid
auth.ldap:
enabled: true
allow_sign_up: true
config_file: /etc/grafana/ldap.toml
Run Code Online (Sandbox Code Playgroud)
这里grafana.ini部分,先把auth.ldap设为true,指定配置文件为ldap.toml
二、ldap
## Grafana's LDAP configuration
## Templated by the template in _helpers.tpl
## NOTE: To enable the grafana.ini must be configured with auth.ldap.enabled
ldap:
enabled: true
# `existingSecret` is a reference to an existing secret containing the ldap configuration
# for Grafana in a key `ldap-toml`.
existingSecret: ""
# `config` is the content of `ldap.toml` that will be stored in the created secret
config: |-
verbose_logging = true
[[servers]]
host = "my-ldap-server"
port = 636
use_ssl = true
start_tls = false
ssl_skip_verify = false
bind_dn = "uid=%s,ou=users,dc=myorg,dc=com"
Run Code Online (Sandbox Code Playgroud)
在这部分中,helm 使用第一步中指定的 LDAP 配置准备 ldap.toml 文件。
因此,根据配置更新 LDAP 主机、端口、bind_dn。
| 归档时间: |
|
| 查看次数: |
2341 次 |
| 最近记录: |