当前位置:网站首页>Rancher2.6 monitoring grafana docking LDAP
Rancher2.6 monitoring grafana docking LDAP
2022-07-28 00:54:00 【InfoQ】
Rancher Monitoring Introduce
reflection
precondition
- Rancher:2.6.4
- k8s:1.20.11
- monitoring:100.1.2+up19.0.3
- OpenLDAP:1.5.0
Detailed operation
Grafana docking LDAP
edit Monitoring Yaml To configure LDAP
- visit Rancher explorer UI, Get into Apps & Marketplace, choice Monitoring, Select... In the configuration options Edit YAML:

- Turn on LDAP Authentication configuration
grafana.grafana.iniauth.ldapgrafana:
grafana.ini:
auth.ldap:
allow_sign_up: true
config_file: /etc/grafana/ldap.toml
enabled: true

grafanagrafana:
ldap:
config: |
[[servers]]
host = "test.zerchin.xyz"
port = 389
use_ssl = false
start_tls = false
ssl_skip_verify = true
bind_dn = "cn=admin,dc=rancherldap,dc=com"
bind_password = 'Rancher123'
search_filter = "(cn=%s)"
search_base_dns = ["cn=group,ou=rancher,dc=rancherldap,dc=com"]
[servers.attributes]
name = "givenName"
surname = "sn"
username = "cn"
member_of = "memberOf"
email = "email"
enabled: true
hostportuse_sslstart_tlsssl_skip_verifybind_dnbind_passwordsearch_filter"(cn=%s)""(sAMAccountName=%s)""(uid=%s)"search_base_dns- Start monitoring after configuration .

LDAP verification


Grafana be based on SSL docking LDAP
Create certificate secret
cattle-monitoring-systemcertsca.pemtls.crttls.key
kubectl create secret generic certs -n cattle-monitoring-system --from-file=ca.pem --from-file=tls.crt --from-file=tls.key
LDAP SSL Authentication configuration
- stay
grafanaUnder the hierarchy , add toextraSecretMountsmount secret certificate :
grafana:
extraSecretMounts:
- defaultMode: 440
mountPath: /opt/certs
name: certs
readOnly: true
secretName: certs
- LDAP Turn on SSL authentication :
grafana:
ldap:
config: |
[[servers]]
host = "test.zerchin.xyz"
port = 636
use_ssl = true
start_tls = false
ssl_skip_verify = false
root_ca_cert = "/opt/certs/ca.pem"
client_cert = "/opt/certs/tls.crt"
client_key = "/opt/certs/tls.key"
bind_dn = "cn=admin,dc=rancherldap,dc=com"
bind_password = 'Rancher123'
search_filter = "(cn=%s)"
search_base_dns = ["cn=group,ou=rancher,dc=rancherldap,dc=com"]
[servers.attributes]
name = "givenName"
surname = "sn"
username = "cn"
member_of = "memberOf"
email = "email"
enabled: true
portSet to 636 SSL Encryption port
use_sslSet to true,ssl_skip_verifySet to false, Turn on SSL authentication
root_ca_cert、client_cert、client_keyConfigure certificate path
- Start monitoring after configuration .
LDAP SSL verification


summary
边栏推荐
- mysql数据库的基本操作(一)-——基于数据库
- 网络设备硬核技术内幕 防火墙与安全网关篇 (小结)
- 大众中国豪掷80亿,成国轩高科第一大股东
- Jerry Zhi doesn't play hidden audio files [article]
- Intel AI practice day issue 56 | explore new trends in industry development
- Leetcode - find the median of two positively ordered arrays
- The program design questions of the 11th national competition of Bluebridge cup single chip microcomputer
- Logic of automatic reasoning 09 - automatic theorem proving
- When Jerry made a phone call, recording to SD card /u disk was not enough [article]
- Redis-事务与乐观锁
猜你喜欢
随机推荐
Jerry caused other messages to accumulate in the message pool [article]
Recurrence of fastjson historical vulnerabilities
Jerry Zhi doesn't play hidden audio files [article]
Point divide and conquer analysis
Volkswagen China invested 8billion yuan and became the largest shareholder of GuoXuan high tech
Arm发布全新A78/G78/N78内核!还有支持自定义的Cortex-X系列CPU
Leetcode 452. minimum number of arrows to burst balloons (medium)
网络设备硬核技术内幕 防火墙与安全网关篇 (五) 安全双修大法 中
Resolved Unicode decodeerror: 'UTF-8' codec can't decode byte 0xa1 in position 0: invalid start byte
Valued at $36billion! SpaceX, which is about to launch its first manned launch, raised $346million
2020年一季度可穿戴市场出货量达7260万部,苹果独占近三成市场份额
Network device hard core technology insider firewall and security gateway (VII) virtualization artifact (Part 1)
Postman下载、使用教程
网络设备硬核技术内幕 防火墙与安全网关篇 (小结)
Rongyun IM & RTC capabilities on new sites
单片机之led、数码管与按键
Applet helps smart home ecological platform
Network device hard core technology insider firewall and security gateway (VIII) virtualization artifact (middle)
Possible reasons why there is no voltage in the corresponding channel, but the ADC value is changing greatly and is not equal to 0
Matlab | those matlab tips you have to know (2)


![Jerry Zhi doesn't play hidden audio files [article]](/img/09/b9fb293151f56d2a93f8a1c8f3d0dc.png)






