blob: 0377beb05a83e2bde15e5eaf2f5e552b08c6cd0a [file] [log] [blame]
Mandeep Khindad6ea9872017-06-24 11:49:37 -04001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: zookeeper
Mandeep Khinda0e8f8892017-08-25 03:31:17 +00005 namespace: "{{ .Values.nsPrefix }}-message-router"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04006spec:
7 selector:
8 matchLabels:
9 app: zookeeper
10 template:
11 metadata:
12 labels:
13 app: zookeeper
14 name: zookeeper
15 spec:
16 containers:
Mandeep Khindadeab10d2017-08-24 23:50:10 +000017 - image: {{ .Values.image.zookeeper }}
18 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040019 name: zookeeper
20 ports:
21 - containerPort: 2181
22 readinessProbe:
23 tcpSocket:
24 port: 2181
25 initialDelaySeconds: 5
26 periodSeconds: 10
27 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030028 - mountPath: /etc/localtime
29 name: localtime
30 readOnly: true
Mandeep Khindad6ea9872017-06-24 11:49:37 -040031 - mountPath: /opt/zookeeper-3.4.9/data
32 name: zookeeper-data
33 restartPolicy: Always
34 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030035 - name: localtime
36 hostPath:
37 path: /etc/localtime
Mandeep Khindad6ea9872017-06-24 11:49:37 -040038 - name: zookeeper-data
BorislavG66a9a5c2017-09-06 15:12:46 +030039 persistentVolumeClaim:
40 claimName: message-router-zookeeper
Borislav Glozman5197e2e2017-07-24 10:45:28 +030041 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000042 - name: "{{ .Values.nsPrefix }}-docker-registry-key"