1
0
mirror of https://github.com/0rangebananaspy/authelia.git synced 2024-09-14 22:47:21 +07:00
authelia/internal/suites/example/kube/ldap/deployment.yml
James Elliott d33d6c2f00
ci: add yamllint ()
This change implements yamllint and adjusts all yaml files to abide by our linting setup. This excludes config.template.yml as this will be done in an alternate commit.
2021-04-11 06:51:00 +10:00

60 lines
1.6 KiB
YAML

---
apiVersion: apps/v1
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: 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
volumes:
- name: config-volume
configMap:
name: ldap-config
items:
- key: base.ldif
path: base.ldif
- key: access.rules
path: access.rules
...