2018-03-04 17:01:38 +00:00
|
|
|
---
|
2019-11-02 14:32:58 +00:00
|
|
|
apiVersion: apps/v1
|
2018-03-04 17:01:38 +00: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-10 20:51:00 +00: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-24 21:52:08 +00:00
|
|
|
volumes:
|
2021-04-10 20:51:00 +00:00
|
|
|
- name: config-volume
|
|
|
|
configMap:
|
|
|
|
name: ldap-config
|
|
|
|
items:
|
|
|
|
- key: base.ldif
|
|
|
|
path: base.ldif
|
|
|
|
- key: access.rules
|
|
|
|
path: access.rules
|
|
|
|
...
|