blob: 885620b18dd4ac452fbca8158cda4af33fe9916e [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableDcaeDmaap }}
Mike Elliott586f03b2017-09-08 12:46:15 -04002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 name: dmaap
6 namespace: "{{ .Values.nsPrefix }}-dcae"
7spec:
8 selector:
9 matchLabels:
10 app: dmaap
11 template:
12 metadata:
13 labels:
14 app: dmaap
15 name: dmaap
16 annotations:
17 pod.beta.kubernetes.io/init-containers: '[
18 {
19 "args": [
20 "--container-name",
21 "kafka",
22 "--container-name",
23 "zookeeper"
24 ],
25 "command": [
26 "/root/ready.py"
27 ],
28 "env": [
29 {
30 "name": "NAMESPACE",
31 "valueFrom": {
32 "fieldRef": {
33 "apiVersion": "v1",
34 "fieldPath": "metadata.namespace"
35 }
36 }
37 }
38 ],
39 "image": "{{ .Values.image.readiness }}",
40 "imagePullPolicy": "{{ .Values.pullPolicy }}",
41 "name": "dmaap-readiness"
42 }
43 ]'
44 spec:
45 containers:
46 - image: {{ .Values.image.dmaap }}
47 imagePullPolicy: {{ .Values.pullPolicy }}
48 name: dmaap
49 ports:
50 - containerPort: 3904
51 - containerPort: 3905
52 readinessProbe:
53 tcpSocket:
54 port: 3904
55 initialDelaySeconds: 5
56 periodSeconds: 10
57 volumeMounts:
58 - mountPath: /appl/dmaapMR1/bundleconfig/etc/appprops/MsgRtrApi.properties
59 name: appprops
60 - mountPath: /appl/dmaapMR1/etc/cadi.properties
61 name: cadi
62 - mountPath: /appl/dmaapMR1/etc/keyfile
63 name: mykey
64 restartPolicy: Always
65 volumes:
66 - name: appprops
67 hostPath:
68 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/dcae/message-router/dmaap/MsgRtrApi.properties
69 - name: cadi
70 hostPath:
71 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/dcae/message-router/dmaap/cadi.properties
72 - name: mykey
73 hostPath:
74 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/dcae/message-router/dmaap/mykey
75 imagePullSecrets:
76 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
yurynfcef9942017-10-26 17:10:50 +030077#{{ end }}