Kubernetes.K3s.installLog/services/LdapWrapper/deployment-LdapWrapper.yml

39 lines
855 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: ldapwrapper
namespace: ldapwrapper
labels:
app: ldapwrapper
spec:
replicas: 1
selector:
matchLabels:
app: ldapwrapper
template:
metadata:
labels:
app: ldapwrapper
spec:
containers:
- name: ldapwrapper
image: ahaen/azuread-ldap-wrapper:latest
env:
- name: GRAPH_IGNORE_MFA_ERRORS
value: 'true'
- name: LDAP_PORT
value: '389'
envFrom:
- secretRef:
name: ldapwrapper
ports:
- containerPort: 389
name: ldap
volumeMounts:
- mountPath: /app/.cache
name: longhorn-ldapwrapper-cache
volumes:
- name: longhorn-ldapwrapper-cache
persistentVolumeClaim:
claimName: longhorn-ldapwrapper-cache