Skip to content

Commit d80fe3b

Browse files
author
osixia
authored
replication controller -> deployment
Remove deprecated use of openldap-backup that is now a image used alone.
1 parent 9565b56 commit d80fe3b

File tree

1 file changed

+3
-24
lines changed

1 file changed

+3
-24
lines changed

example/kubernetes/using-secrets/ldap-rc.yaml renamed to example/kubernetes/using-secrets/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:
@@ -31,32 +29,13 @@ spec:
3129
ports:
3230
- containerPort: 389
3331
name: openldap
34-
- name: ldap-backup
35-
image: osixia/openldap-backup:0.1.11
36-
volumeMounts:
37-
- name: ldap-data
38-
mountPath: /var/lib/ldap
39-
- name: ldap-config
40-
mountPath: /etc/ldap/slapd.d
41-
- name: ldap-backup
42-
mountPath: /data/backup
43-
env:
44-
- name: LDAP_BACKUP_CONFIG_CRON_EXP
45-
value: "15 1 * * *"
46-
- name: LDAP_BACKUP_DATA_CRON_EXP
47-
value: "20 1 * * *"
48-
- name: LDAP_BACKUP_TTL
49-
value: "15"
5032
volumes:
5133
- name: ldap-data
5234
hostPath:
5335
path: "/data/ldap/db"
5436
- name: ldap-config
5537
hostPath:
5638
path: "/data/ldap/config"
57-
- name: ldap-backup
58-
hostPath:
59-
path: "/data/ldap/backup"
6039
- name: ldap-certs
6140
hostPath:
6241
path: "/data/ldap/certs"

0 commit comments

Comments
 (0)