apiVersion: apps/v1 kind: Deployment metadata: annotations: lldap: https://github.com/nitnelave/lldap k8s: https://github.com/Evantage-WS/lldap-kubernetes labels: app: lldap name: lldap spec: replicas: 2 selector: matchLabels: app: lldap strategy: type: Recreate template: metadata: annotations: lldap: https://github.com/nitnelave/lldap k8s: https://github.com/Evantage-WS/lldap-kubernetes labels: app: lldap spec: topologySpreadConstraints: - maxSkew: 1 topologyKey: kubernetes.io/hostname whenUnsatisfiable: DoNotSchedule labelSelector: matchLabels: app: lldap containers: - env: - name: GID value: "1001" - name: LLDAP_LDAP_BASE_DN value: dc=huizinga,dc=dev - name: LLDAP_LDAP_USER_PASS valueFrom: secretKeyRef: name: lldap-credentials key: lldap-ldap-user-pass - name: LLDAP_JWT_SECRET valueFrom: secretKeyRef: name: lldap-credentials key: lldap-jwt-secret - name: LLDAP_DATABASE_URL valueFrom: secretKeyRef: name: postgres-app key: uri - name: TZ value: CET - name: UID value: "1001" image: nitnelave/lldap:latest name: lldap ports: - containerPort: 3890 - containerPort: 17170 restartPolicy: Always