12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- apiVersion: extensions/v1beta1
- kind: Deployment
- metadata:
- name: ldap
- labels:
- app: ldap
- spec:
- replicas: 1
- template:
- metadata:
- labels:
- app: ldap
- spec:
- containers:
- - name: ldap
- image: osixia/openldap:1.2.5
- args: ["--copy-service"]
- volumeMounts:
- - name: ldap-data
- mountPath: /var/lib/ldap
- - name: ldap-config
- mountPath: /etc/ldap/slapd.d
- - name: ldap-certs
- mountPath: /container/service/slapd/assets/certs
- - name: secret-volume
- mountPath: /container/environment/01-custom
- - name: container-run
- mountPath: /container/run
- ports:
- - containerPort: 389
- name: openldap
- volumes:
- - name: ldap-data
- hostPath:
- path: "/data/ldap/db"
- - name: ldap-config
- hostPath:
- path: "/data/ldap/config"
- - name: ldap-certs
- hostPath:
- path: "/data/ldap/certs"
- - name: "secret-volume"
- secret:
- secretName: "ldap-secret"
- - name: container-run
- emptyDir: {}
|