flux-infra/infra/lldap/deployment.yaml
2025-03-07 00:54:04 +01:00

57 lines
1.4 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: lldap
name: lldap
spec:
replicas: 2
selector:
matchLabels:
app: lldap
strategy:
type: Recreate
template:
metadata:
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