ldap-deployment.yaml.example 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: ldap
  5. labels:
  6. app: ldap
  7. spec:
  8. selector:
  9. matchLabels:
  10. app: ldap
  11. replicas: 1
  12. template:
  13. metadata:
  14. labels:
  15. app: ldap
  16. spec:
  17. containers:
  18. - name: ldap
  19. image: osixia/openldap:1.4.0
  20. args: ["--copy-service"]
  21. volumeMounts:
  22. - name: ldap-data
  23. mountPath: /var/lib/ldap
  24. - name: ldap-config
  25. mountPath: /etc/ldap/slapd.d
  26. - name: ldap-certs
  27. mountPath: /container/service/slapd/assets/certs
  28. - name: secret-volume
  29. mountPath: /container/environment/01-custom
  30. - name: container-run
  31. mountPath: /container/run
  32. ports:
  33. - containerPort: 389
  34. name: openldap
  35. - containerPort: 636
  36. name: openldapssl
  37. volumes:
  38. - name: ldap-data
  39. hostPath:
  40. path: "/data/ldap/db"
  41. - name: ldap-config
  42. hostPath:
  43. path: "/data/ldap/config"
  44. - name: ldap-certs
  45. hostPath:
  46. path: "/data/ldap/certs"
  47. - name: "secret-volume"
  48. secret:
  49. secretName: "ldap-secret"
  50. - name: container-run
  51. emptyDir: {}