2018-03-05 00:01:38 +07:00
|
|
|
---
|
2019-11-02 21:32:58 +07:00
|
|
|
apiVersion: apps/v1
|
2018-03-05 00:01:38 +07:00
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: ldap
|
|
|
|
namespace: authelia
|
|
|
|
labels:
|
|
|
|
app: ldap
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: ldap
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: ldap
|
|
|
|
spec:
|
|
|
|
containers:
|
2021-04-11 03:51:00 +07:00
|
|
|
- name: ldap
|
|
|
|
image: osixia/openldap:1.3.0
|
|
|
|
ports:
|
|
|
|
- containerPort: 389
|
|
|
|
- containerPort: 636
|
|
|
|
args: ["--copy-service", "--loglevel", "debug"]
|
|
|
|
env:
|
|
|
|
- name: LDAP_ORGANISATION
|
|
|
|
value: MyCompany
|
|
|
|
- name: LDAP_DOMAIN
|
|
|
|
value: example.com
|
|
|
|
- name: LDAP_ADMIN_PASSWORD
|
|
|
|
value: password
|
|
|
|
- name: LDAP_CONFIG_PASSWORD
|
|
|
|
value: password
|
|
|
|
- name: LDAP_ADDITIONAL_MODULES
|
|
|
|
value: memberof
|
|
|
|
- name: LDAP_ADDITIONAL_SCHEMAS
|
|
|
|
value: openldap
|
|
|
|
- name: LDAP_FORCE_RECONFIGURE
|
|
|
|
value: "true"
|
|
|
|
- name: LDAP_TLS_VERIFY_CLIENT
|
|
|
|
value: try
|
|
|
|
volumeMounts:
|
|
|
|
- name: config-volume
|
|
|
|
mountPath: /container/service/slapd/assets/config/bootstrap/ldif/custom/base.ldif
|
|
|
|
subPath: base.ldif
|
|
|
|
- name: config-volume
|
|
|
|
mountPath: /container/service/slapd/assets/config/bootstrap/ldif/custom/access.rules
|
|
|
|
subPath: access.rules
|
2019-04-25 04:52:08 +07:00
|
|
|
volumes:
|
2021-04-11 03:51:00 +07:00
|
|
|
- name: config-volume
|
|
|
|
configMap:
|
|
|
|
name: ldap-config
|
|
|
|
items:
|
|
|
|
- key: base.ldif
|
|
|
|
path: base.ldif
|
|
|
|
- key: access.rules
|
|
|
|
path: access.rules
|
|
|
|
...
|