lldap-controller/manifests/deployment.yaml
Dreaded_X 8a07d661ce
All checks were successful
Build and deploy / Build container and manifests (push) Successful in 6m15s
kustomization/lldap-controller/b5ae0585 reconciliation succeeded
Added option to load lldap password from file (#12)
2025-04-22 11:13:46 +02:00

53 lines
1.5 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: lldap-controller
labels:
app: lldap-controller
app.kubernetes.io/name: lldap-controller
spec:
replicas: 1
selector:
matchLabels:
app: lldap-controller
template:
metadata:
labels:
app: lldap-controller
annotations:
kubectl.kubernetes.io/default-container: lldap-controller
spec:
serviceAccountName: lldap-controller
securityContext: {}
containers:
- name: lldap-controller
image: git.huizinga.dev/dreaded_x/lldap-controller@${DIGEST}
imagePullPolicy: IfNotPresent
securityContext: {}
resources:
limits:
cpu: 200m
memory: 256Mi
requests:
cpu: 50m
memory: 100Mi
volumeMounts:
- name: credentials
readOnly: true
mountPath: "/secrets/credentials"
env:
- name: RUST_LOG
value: info,lldap_controller=debug
- name: LLDAP_URL
value: "http://lldap:17170"
- name: LLDAP_USERNAME
value: admin
- name: LLDAP_PASSWORD_FILE
value: /secrets/credentials/lldap-ldap-user-pass
- name: LLDAP_BIND_DN
value: uid={username},ou=people,dc=huizinga,dc=dev
volumes:
- name: credentials
secret:
secretName: lldap-credentials