使用K8S部署LDAP管理面板
管理LDAP的面板
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: devops
labels:
app: phpldapadmin
name: phpldapadmin
spec:
selector:
matchLabels:
app: phpldapadmin
replicas: 1
strategy: {}
template:
metadata:
labels:
app: phpldapadmin
spec:
containers:
- env:
- name: PHPLDAPADMIN_HTTPS
value: "false"
- name: PHPLDAPADMIN_LDAP_HOSTS
value: 你的ldap地址
image: dotbalo/lam
name: phpldapadmin
ports:
- containerPort: 80
resources: {}
restartPolicy: Always
status: {}
---
apiVersion: v1
kind: Service
metadata:
namespace: devops
creationTimestamp: null
labels:
app: phpldapadmin
name: phpldapadmin
spec:
type: NodePort
ports:
- name: "8080"
port: 8080
targetPort: 80
nodePort: 30826
selector:
app: phpldapadmin
status:
loadBalancer: {}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# 登录
用户名:cn=admin,dc=dra-m,dc=com
# 使用
创建posixGroup
创建User Account
User Name字段一般为其他接入LDAP时登录所需用户名
Add new attribute: Email
有些平台(Kuboard、Gitlab)会读取用户的Email字段,不填写会报错。 更改后要点commit提交才生效
上次更新: 10/23/2024