blob: 1cc79c819e34a430dd2d070f9c7ab2ecec3e3b72 [file] [log] [blame]
Mandeep Khindad6ea9872017-06-24 11:49:37 -04001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: dmaap
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: dmaap
10 template:
11 metadata:
12 labels:
13 app: dmaap
14 name: dmaap
15 annotations:
16 pod.beta.kubernetes.io/init-containers: '[
17 {
18 "args": [
19 "--container-name",
20 "global-kafka",
21 "--container-name",
22 "zookeeper"
23 ],
24 "command": [
25 "/root/ready.py"
26 ],
27 "env": [
28 {
29 "name": "NAMESPACE",
30 "valueFrom": {
31 "fieldRef": {
32 "apiVersion": "v1",
33 "fieldPath": "metadata.namespace"
34 }
35 }
36 }
37 ],
kerenj9e77b212017-08-23 08:40:41 +000038 "image": "{{ .Values.image.readiness }}",
39 "imagePullPolicy": "{{ .Values.pullPolicy }}",
Mandeep Khindad6ea9872017-06-24 11:49:37 -040040 "name": "dmaap-readiness"
41 }
42 ]'
43 spec:
44 containers:
kerenj9e77b212017-08-23 08:40:41 +000045 - image: {{ .Values.image.dmaap }}
46 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040047 name: dmaap
48 ports:
49 - containerPort: 3904
50 - containerPort: 3905
51 readinessProbe:
52 tcpSocket:
53 port: 3904
54 initialDelaySeconds: 5
55 periodSeconds: 10
56 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030057 - mountPath: /etc/localtime
58 name: localtime
59 readOnly: true
Mandeep Khindad6ea9872017-06-24 11:49:37 -040060 - mountPath: /appl/dmaapMR1/bundleconfig/etc/appprops/MsgRtrApi.properties
61 name: appprops
62 - mountPath: /appl/dmaapMR1/etc/cadi.properties
63 name: cadi
64 - mountPath: /appl/dmaapMR1/etc/keyfile
65 name: mykey
66 restartPolicy: Always
67 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030068 - name: localtime
69 hostPath:
70 path: /etc/localtime
Mandeep Khindad6ea9872017-06-24 11:49:37 -040071 - name: appprops
72 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000073 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/message-router/dmaap/MsgRtrApi.properties
Mandeep Khindad6ea9872017-06-24 11:49:37 -040074 - name: cadi
75 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000076 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/message-router/dmaap/cadi.properties
Mandeep Khindad6ea9872017-06-24 11:49:37 -040077 - name: mykey
Keren Joseph4b7026e2017-09-12 10:13:15 +030078 hostPath:
79 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/message-router/dmaap/mykey
Borislav Glozman5197e2e2017-07-24 10:45:28 +030080 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000081 - name: "{{ .Values.nsPrefix }}-docker-registry-key"