ldap-deployment.yaml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. apiVersion: extensions/v1beta1
  2. kind: Deployment
  3. metadata:
  4. namespace: public-service
  5. name: ldap
  6. labels:
  7. app: ldap
  8. spec:
  9. replicas: 1
  10. template:
  11. metadata:
  12. labels:
  13. app: ldap
  14. spec:
  15. containers:
  16. - name: ldap
  17. image: osixia/openldap:1.2.2
  18. args: ["--copy-service"]
  19. volumeMounts:
  20. - name: openldap-data
  21. mountPath: /var/lib/ldap
  22. subPath: data
  23. - name: openldap-data
  24. mountPath: /etc/ldap/slapd.d
  25. subPath: config
  26. - name: openldap-data
  27. mountPath: /container/service/slapd/assets/certs
  28. subPath: certs
  29. - name: secret-volume
  30. mountPath: /container/environment/01-custom
  31. - name: container-run
  32. mountPath: /container/run
  33. ports:
  34. - containerPort: 389
  35. name: openldap
  36. - name: ssl-ldap-port
  37. containerPort: 636
  38. livenessProbe:
  39. tcpSocket:
  40. port: openldap
  41. initialDelaySeconds: 20
  42. periodSeconds: 10
  43. failureThreshold: 10
  44. readinessProbe:
  45. tcpSocket:
  46. port: openldap
  47. initialDelaySeconds: 20
  48. periodSeconds: 10
  49. failureThreshold: 10
  50. volumes:
  51. - name: openldap-data
  52. persistentVolumeClaim:
  53. claimName: openldap-data
  54. - name: "secret-volume"
  55. secret:
  56. secretName: "ldap-secret"
  57. - name: container-run
  58. emptyDir: {}
  59. ---
  60. kind: PersistentVolumeClaim
  61. apiVersion: v1
  62. metadata:
  63. namespace: public-service
  64. name: openldap-data
  65. spec:
  66. accessModes: [ "ReadWriteMany" ]
  67. storageClassName: "gluster-heketi"
  68. resources:
  69. requests:
  70. storage: 1Gi