ldap db
This commit is contained in:
1 parent
6d5bb21d49
commit
770d51f686
1 file changed
+40
-30
@@ -15,6 +15,10 @@ spec:
|
||||
labels:
|
||||
app.kubernetes.io/name: ldap
|
||||
spec:
|
||||
volumes:
|
||||
- name: ldapdb
|
||||
persistentVolumeClaim:
|
||||
claimName: ldapdb
|
||||
containers:
|
||||
- name: ldap
|
||||
image: docker.io/bitnami/openldap:latest
|
||||
@@ -26,7 +30,14 @@ spec:
|
||||
requests:
|
||||
cpu: 0.5
|
||||
memory: "250Mi"
|
||||
volumeMounts:
|
||||
- name: ldapdb
|
||||
mountPath: /bitnami/openldap
|
||||
env:
|
||||
- name: LDAP_ORGANISATION
|
||||
value: "Home Cloud"
|
||||
- name: LDAP_DOMAIN
|
||||
value: "ldap.{{ .Values.global.domain }}"
|
||||
- name: LDAP_ROOT
|
||||
value: "dc=home,dc=sosnovsky,dc=ca"
|
||||
- name: LDAP_ADMIN_USERNAME
|
||||
@@ -51,39 +62,38 @@ spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: phpldapadmin
|
||||
replicas: 1
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: phpldapadmin
|
||||
spec:
|
||||
containers:
|
||||
- name: main
|
||||
image: osixia/phpldapadmin:0.9.0
|
||||
imagePullPolicy: IfNotPresent
|
||||
env:
|
||||
- name: PHPLDAPADMIN_LDAP_HOSTS
|
||||
value: ldap.{{.Release.Namespace}}.svc.cluster.local
|
||||
- name: PHPLDAPADMIN_HTTPS
|
||||
value: "false"
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 80
|
||||
protocol: TCP
|
||||
readinessProbe:
|
||||
initialDelaySeconds: 15
|
||||
httpGet:
|
||||
path: /
|
||||
port: http
|
||||
livenessProbe:
|
||||
initialDelaySeconds: 15
|
||||
httpGet:
|
||||
path: /
|
||||
port: http
|
||||
resources:
|
||||
limits:
|
||||
cpu: 100m
|
||||
memory: 128Mi
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 128Mi
|
||||
- name: main
|
||||
image: osixia/phpldapadmin:0.9.0
|
||||
imagePullPolicy: IfNotPresent
|
||||
env:
|
||||
- name: PHPLDAPADMIN_LDAP_HOSTS
|
||||
value: ldap.{{.Release.Namespace}}.svc.cluster.local
|
||||
- name: PHPLDAPADMIN_HTTPS
|
||||
value: "false"
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 80
|
||||
protocol: TCP
|
||||
readinessProbe:
|
||||
initialDelaySeconds: 15
|
||||
httpGet:
|
||||
path: /
|
||||
port: http
|
||||
livenessProbe:
|
||||
initialDelaySeconds: 15
|
||||
httpGet:
|
||||
path: /
|
||||
port: http
|
||||
resources:
|
||||
limits:
|
||||
cpu: 100m
|
||||
memory: 128Mi
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 128Mi
|
||||
Reference in new issue
Block a user