59 lines
1.5 KiB
YAML
59 lines
1.5 KiB
YAML
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
|
|
namespace: lldap
|
|
spec:
|
|
replicas: 1
|
|
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:
|
|
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: TZ
|
|
value: CET
|
|
- name: UID
|
|
value: "1001"
|
|
image: nitnelave/lldap:latest
|
|
name: lldap
|
|
ports:
|
|
- containerPort: 3890
|
|
- containerPort: 17170
|
|
volumeMounts:
|
|
- mountPath: /data
|
|
name: lldap-data
|
|
restartPolicy: Always
|
|
volumes:
|
|
- name: lldap-data
|
|
persistentVolumeClaim:
|
|
claimName: lldap-data
|