blob: 37c27d0854a8530f91ad854e2bbc3fd316ae6b4c [file] [log] [blame]
Mandeep Khindafc068432017-08-30 14:24:02 +00001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: aai-dmaap
5 namespace: "{{ .Values.nsPrefix }}-aai"
6spec:
7 selector:
8 matchLabels:
9 app: aai-dmaap
10 template:
11 metadata:
12 labels:
13 app: aai-dmaap
14 name: aai-dmaap
15 annotations:
16 pod.beta.kubernetes.io/init-containers: '[
17 {
18 "args": [
19 "--container-name",
20 "aai-kafka",
21 "--container-name",
22 "aai-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 ],
38 "image": "{{ .Values.image.readiness }}",
39 "imagePullPolicy": "{{ .Values.pullPolicy }}",
40 "name": "aai-dmaap-readiness"
41 }
42 ]'
43 spec:
44 containers:
45 - image: "{{ .Values.image.dmaapImage }}:{{ .Values.image.dmaapVersion}}"
46 imagePullPolicy: {{ .Values.pullPolicy }}
47 name: aai-dmaap
48 ports:
49 - containerPort: 3904
50 - containerPort: 3905
51 readinessProbe:
52 tcpSocket:
53 port: 3904
54 initialDelaySeconds: 5
55 periodSeconds: 10
56 volumeMounts:
57 - mountPath: /appl/dmaapMR1/bundleconfig/etc/appprops/MsgRtrApi.properties
58 name: appprops
59 - mountPath: /appl/dmaapMR1/etc/cadi.properties
60 name: cadi
61 - mountPath: /appl/dmaapMR1/etc/keyfile
62 name: mykey
63 restartPolicy: Always
64 volumes:
65 - name: appprops
66 hostPath:
67 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/aai/message-router/dmaap/MsgRtrApi.properties
68 - name: cadi
69 hostPath:
70 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/aai/message-router/dmaap/cadi.properties
71 - name: mykey
72 hostPath:
73 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/aai/message-router/dmaap/mykey
74 imagePullSecrets:
75 - name: "{{ .Values.nsPrefix }}-docker-registry-key"