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:
|
|
|
|
- name: ldap
|
|
|
|
image: clems4ever/authelia-test-ldap
|
|
|
|
ports:
|
|
|
|
- containerPort: 389
|
2019-04-24 21:52:08 +00:00
|
|
|
env:
|
|
|
|
- name: SLAPD_ORGANISATION
|
|
|
|
value: MyCompany
|
|
|
|
- name: SLAPD_DOMAIN
|
|
|
|
value: example.com
|
|
|
|
- name: SLAPD_PASSWORD
|
|
|
|
value: password
|
|
|
|
- name: SLAPD_CONFIG_PASSWORD
|
|
|
|
value: password
|
|
|
|
- name: SLAPD_ADDITIONAL_MODULES
|
|
|
|
value: memberof
|
|
|
|
- name: SLAPD_ADDITIONAL_SCHEMAS
|
|
|
|
value: openldap
|
|
|
|
- name: SLAPD_FORCE_RECONFIGURE
|
|
|
|
value: "true"
|
|
|
|
volumeMounts:
|
|
|
|
- name: config-volume
|
|
|
|
mountPath: /etc/ldap.dist/prepopulate
|
|
|
|
volumes:
|
|
|
|
- name: config-volume
|
|
|
|
configMap:
|
|
|
|
name: ldap-config
|
|
|
|
items:
|
|
|
|
- key: base.ldif
|
|
|
|
path: base.ldif
|
|
|
|
- key: access.rules
|
|
|
|
path: access.rules
|