blob: f320fee539a5d0dd2e8f229190a202ae1ec0e3a7 [file] [log] [blame]
Mandeep Khindad6ea9872017-06-24 11:49:37 -04001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: appc
Mandeep Khinda0e8f8892017-08-25 03:31:17 +00005 namespace: "{{ .Values.nsPrefix }}-appc"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04006spec:
7 selector:
8 matchLabels:
9 app: appc
10 template:
11 metadata:
12 labels:
13 app: appc
14 name: appc
15 annotations:
16 pod.beta.kubernetes.io/init-containers: '[
17 {
18 "args": [
19 "--container-name",
20 "appc-db-container"
21 ],
22 "command": [
23 "/root/ready.py"
24 ],
25 "env": [
26 {
27 "name": "NAMESPACE",
28 "valueFrom": {
29 "fieldRef": {
30 "apiVersion": "v1",
31 "fieldPath": "metadata.namespace"
32 }
33 }
34 }
35 ],
kerenj6ca15a72017-08-23 12:05:23 +000036 "image": "{{ .Values.image.readiness }}",
37 "imagePullPolicy": "{{ .Values.pullPolicy }}",
Mandeep Khindad6ea9872017-06-24 11:49:37 -040038 "name": "appc-readiness"
39 }
40 ]'
41 spec:
42 containers:
43 - command:
44 - /opt/openecomp/appc/bin/startODL.sh
45 env:
46 - name: MYSQL_ROOT_PASSWORD
47 value: openECOMP1.0
48 - name: SDNC_CONFIG_DIR
Alexis de Talhouƫt91c77102017-09-26 10:29:32 -040049 value: /opt/openecomp/appc/data/properties
Mandeep Khindad6ea9872017-06-24 11:49:37 -040050 - name: APPC_CONFIG_DIR
51 value: /opt/openecomp/appc/data/properties
52 - name: DMAAP_TOPIC_ENV
53 value: SUCCESS
kerenj6ca15a72017-08-23 12:05:23 +000054 image: {{ .Values.image.appc }}
55 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040056 name: appc-controller-container
57 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030058 - mountPath: /etc/localtime
59 name: localtime
60 readOnly: true
Mandeep Khinda9f354812017-08-25 16:18:28 +000061 - mountPath: /opt/openecomp/appc/data/properties/appc.properties
62 name: appc-properties
63 - mountPath: /opt/openecomp/appc/data/properties/aaiclient.properties
64 name: appc-aaiclient-properties
65 - mountPath: /opt/openecomp/sdnc/data/properties/aaiclient.properties
66 name: sdnc-aaiclient-properties
67 - mountPath: /opt/openecomp/sdnc/data/properties/admportal.json
68 name: sdnc-admportal-json
yurynd0707be2017-09-27 14:54:18 +030069 - mountPath: /var/log/onap
70 name: appc-logs
71 - mountPath: /opt/opendaylight/current/etc/org.ops4j.pax.logging.cfg
72 name: appc-log-config
Mandeep Khindad6ea9872017-06-24 11:49:37 -040073 ports:
74 - containerPort: 8181
75 - containerPort: 1830
76 readinessProbe:
77 tcpSocket:
78 port: 8181
79 initialDelaySeconds: 5
80 periodSeconds: 10
yurynd0707be2017-09-27 14:54:18 +030081 - image: {{ .Values.image.filebeat }}
82 imagePullPolicy: {{ .Values.pullPolicy }}
83 name: filebeat-onap
84 volumeMounts:
85 - mountPath: /usr/share/filebeat/filebeat.yml
86 name: filebeat-conf
87 - mountPath: /var/log/onap
88 name: appc-logs
89 - mountPath: /usr/share/filebeat/data
90 name: appc-data-filebeat
Mandeep Khindad6ea9872017-06-24 11:49:37 -040091 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030092 - name: localtime
93 hostPath:
94 path: /etc/localtime
yurynd0707be2017-09-27 14:54:18 +030095 - name: filebeat-conf
96 hostPath:
97 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/filebeat/log4j/filebeat.yml
98 - name: appc-log-config
99 hostPath:
100 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/appc/org.ops4j.pax.logging.cfg
101 - name: appc-logs
102 emptyDir: {}
103 - name: appc-data-filebeat
104 emptyDir: {}
Mandeep Khinda9f354812017-08-25 16:18:28 +0000105 - name: appc-properties
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400106 hostPath:
Mandeep Khinda9f354812017-08-25 16:18:28 +0000107 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/appc/conf/appc.properties
108 - name: appc-aaiclient-properties
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400109 hostPath:
Mandeep Khinda9f354812017-08-25 16:18:28 +0000110 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/appc/conf/aaiclient.properties
111 - name: sdnc-aaiclient-properties
112 hostPath:
113 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdnc/conf/aaiclient.properties
114 - name: sdnc-admportal-json
115 hostPath:
116 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdnc/conf/admportal.json
Borislav Glozman5197e2e2017-07-24 10:45:28 +0300117 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000118 - name: "{{ .Values.nsPrefix }}-docker-registry-key"