2023-08-28 15:56:32 +02:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: openldap
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: openldap
|
|
|
|
namespace: openldap
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app.kubernetes.io/name: openldap
|
|
|
|
replicas: 1
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: openldap
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: openldap
|
2023-08-28 16:21:59 +02:00
|
|
|
image: docker.io/bitnami/openldap:latest
|
|
|
|
# image: reg.cadoles.com/proxy_cache/library/openldap:latest
|
2023-08-28 15:56:32 +02:00
|
|
|
imagePullPolicy: "Always"
|
|
|
|
env:
|
|
|
|
- name: LDAP_ADMIN_USERNAME
|
|
|
|
value: "admin"
|
|
|
|
- name: LDAP_ADMIN_PASSWORD
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
key: adminpassword
|
|
|
|
name: openldap
|
|
|
|
- name: LDAP_USERS
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
key: users
|
|
|
|
name: openldap
|
|
|
|
- name: LDAP_PASSWORDS
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
key: passwords
|
|
|
|
name: openldap
|
|
|
|
ports:
|
|
|
|
- name: tcp-ldap
|
|
|
|
containerPort: 1389
|