blob: 0dd8723ef06fcd2af3c7021d16066c0518cbc3d6 [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableMessageRouterZookeeper }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -04002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
BorislavG8bfc6cf2018-02-27 15:04:26 +00005 name: message-router-zookeeper
6 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04007spec:
vaibhav_16deca6719fe2018-02-14 09:48:43 +00008 replicas: {{ .Values.zookeeperReplicas }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -04009 selector:
10 matchLabels:
11 app: zookeeper
12 template:
13 metadata:
14 labels:
15 app: zookeeper
BorislavG8bfc6cf2018-02-27 15:04:26 +000016 name: message-router-zookeeper
Mandeep Khindad6ea9872017-06-24 11:49:37 -040017 spec:
18 containers:
Mandeep Khindadeab10d2017-08-24 23:50:10 +000019 - image: {{ .Values.image.zookeeper }}
20 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040021 name: zookeeper
22 ports:
23 - containerPort: 2181
24 readinessProbe:
25 tcpSocket:
26 port: 2181
27 initialDelaySeconds: 5
28 periodSeconds: 10
29 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030030 - mountPath: /etc/localtime
31 name: localtime
32 readOnly: true
Mandeep Khindad6ea9872017-06-24 11:49:37 -040033 - mountPath: /opt/zookeeper-3.4.9/data
34 name: zookeeper-data
35 restartPolicy: Always
36 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030037 - name: localtime
38 hostPath:
39 path: /etc/localtime
Mandeep Khindad6ea9872017-06-24 11:49:37 -040040 - name: zookeeper-data
BorislavG66a9a5c2017-09-06 15:12:46 +030041 persistentVolumeClaim:
42 claimName: message-router-zookeeper
Borislav Glozman5197e2e2017-07-24 10:45:28 +030043 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000044 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
vaibhav_16deca6719fe2018-02-14 09:48:43 +000045#{{ end }}