Skip to content

Commit d1ac552

Browse files
author
osixia
authored
Update and rename ldap-rc.yaml to ldap-deployment.yaml
1 parent 10292b3 commit d1ac552

File tree

1 file changed

+3
-24
lines changed

1 file changed

+3
-24
lines changed

example/kubernetes/simple/ldap-rc.yaml renamed to example/kubernetes/simple/ldap-deployment.yaml

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
apiVersion: v1
2-
kind: ReplicationController
1+
apiVersion: extensions/v1beta1
2+
kind: Deployment
33
metadata:
4-
name: ldap-controller
4+
name: ldap
55
labels:
66
app: ldap
77
spec:
88
replicas: 1
9-
selector:
10-
app: ldap
119
template:
1210
metadata:
1311
labels:
@@ -71,32 +69,13 @@ spec:
7169
value: "true"
7270
- name: LDAP_SSL_HELPER_PREFIX
7371
value: "ldap"
74-
- name: ldap-backup
75-
image: osixia/openldap-backup:0.1.11
76-
volumeMounts:
77-
- name: ldap-data
78-
mountPath: /var/lib/ldap
79-
- name: ldap-config
80-
mountPath: /etc/ldap/slapd.d
81-
- name: ldap-backup
82-
mountPath: /data/backup
83-
env:
84-
- name: LDAP_BACKUP_CONFIG_CRON_EXP
85-
value: "15 1 * * *"
86-
- name: LDAP_BACKUP_DATA_CRON_EXP
87-
value: "20 1 * * *"
88-
- name: LDAP_BACKUP_TTL
89-
value: "15"
9072
volumes:
9173
- name: ldap-data
9274
hostPath:
9375
path: "/data/ldap/db"
9476
- name: ldap-config
9577
hostPath:
9678
path: "/data/ldap/config"
97-
- name: ldap-backup
98-
hostPath:
99-
path: "/data/ldap/backup"
10079
- name: ldap-certs
10180
hostPath:
10281
path: "/data/ldap/certs"

0 commit comments

Comments
 (0)