nineskeletor/misc/k8s/kustomization/base/resources/openldap/openldap-deployment.yaml

38 lines
910 B
YAML
Raw Normal View History

2023-06-26 09:20:23 +02:00
---
kind: Deployment
apiVersion: apps/v1
metadata:
name: openldap
labels:
app.kubernetes.io/name: openldap
spec:
selector:
matchLabels:
app.kubernetes.io/name: openldap
replicas: 1
template:
metadata:
labels:
app.kubernetes.io/name: openldap
spec:
containers:
- name: openldap
image: docker.io/bitnami/openldap:latest
imagePullPolicy: "Always"
env:
- name: LDAP_USERS
value: ""
- name: LDAP_PASSWORDS
value: ""
- name: LDAP_ADMIN_USERNAME
value: "admin"
- name: LDAP_ADMIN_PASSWORD
valueFrom:
secretKeyRef:
name: openldap-secret
key: adminpassword
- name: LDAP_ROOT
value: "dc=nine,dc=fr"
ports:
- containerPort: 1389