blob: e379c167d78109419d047911d387ac16b1082a02 [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableAppcAppc }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -04002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 name: appc
Mandeep Khinda0e8f8892017-08-25 03:31:17 +00006 namespace: "{{ .Values.nsPrefix }}-appc"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04007spec:
8 selector:
9 matchLabels:
10 app: appc
11 template:
12 metadata:
13 labels:
14 app: appc
15 name: appc
16 annotations:
17 pod.beta.kubernetes.io/init-containers: '[
18 {
19 "args": [
20 "--container-name",
21 "appc-db-container"
22 ],
23 "command": [
24 "/root/ready.py"
25 ],
26 "env": [
27 {
28 "name": "NAMESPACE",
29 "valueFrom": {
30 "fieldRef": {
31 "apiVersion": "v1",
32 "fieldPath": "metadata.namespace"
33 }
34 }
35 }
36 ],
kerenj6ca15a72017-08-23 12:05:23 +000037 "image": "{{ .Values.image.readiness }}",
38 "imagePullPolicy": "{{ .Values.pullPolicy }}",
Mandeep Khindad6ea9872017-06-24 11:49:37 -040039 "name": "appc-readiness"
40 }
41 ]'
42 spec:
43 containers:
44 - command:
45 - /opt/openecomp/appc/bin/startODL.sh
46 env:
47 - name: MYSQL_ROOT_PASSWORD
48 value: openECOMP1.0
49 - name: SDNC_CONFIG_DIR
Alexis de Talhouƫt91c77102017-09-26 10:29:32 -040050 value: /opt/openecomp/appc/data/properties
Mandeep Khindad6ea9872017-06-24 11:49:37 -040051 - name: APPC_CONFIG_DIR
52 value: /opt/openecomp/appc/data/properties
53 - name: DMAAP_TOPIC_ENV
54 value: SUCCESS
kerenj6ca15a72017-08-23 12:05:23 +000055 image: {{ .Values.image.appc }}
56 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040057 name: appc-controller-container
58 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030059 - mountPath: /etc/localtime
60 name: localtime
61 readOnly: true
Mandeep Khinda9f354812017-08-25 16:18:28 +000062 - mountPath: /opt/openecomp/appc/data/properties/appc.properties
63 name: appc-properties
64 - mountPath: /opt/openecomp/appc/data/properties/aaiclient.properties
65 name: appc-aaiclient-properties
Mandeep Khinda9743d842017-10-05 22:08:08 +000066 - mountPath: /opt/onap/sdnc/data/properties/aaiclient.properties
Mandeep Khinda9f354812017-08-25 16:18:28 +000067 name: sdnc-aaiclient-properties
yurynd0707be2017-09-27 14:54:18 +030068 - mountPath: /var/log/onap
69 name: appc-logs
70 - mountPath: /opt/opendaylight/current/etc/org.ops4j.pax.logging.cfg
71 name: appc-log-config
Mandeep Khindad6ea9872017-06-24 11:49:37 -040072 ports:
73 - containerPort: 8181
74 - containerPort: 1830
75 readinessProbe:
76 tcpSocket:
77 port: 8181
78 initialDelaySeconds: 5
79 periodSeconds: 10
yurynd0707be2017-09-27 14:54:18 +030080 - image: {{ .Values.image.filebeat }}
81 imagePullPolicy: {{ .Values.pullPolicy }}
82 name: filebeat-onap
83 volumeMounts:
84 - mountPath: /usr/share/filebeat/filebeat.yml
85 name: filebeat-conf
86 - mountPath: /var/log/onap
87 name: appc-logs
88 - mountPath: /usr/share/filebeat/data
89 name: appc-data-filebeat
Mandeep Khindad6ea9872017-06-24 11:49:37 -040090 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030091 - name: localtime
92 hostPath:
93 path: /etc/localtime
yurynd0707be2017-09-27 14:54:18 +030094 - name: filebeat-conf
95 hostPath:
96 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/filebeat/log4j/filebeat.yml
97 - name: appc-log-config
98 hostPath:
99 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/appc/org.ops4j.pax.logging.cfg
100 - name: appc-logs
101 emptyDir: {}
102 - name: appc-data-filebeat
103 emptyDir: {}
Mandeep Khinda9f354812017-08-25 16:18:28 +0000104 - name: appc-properties
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400105 hostPath:
Mandeep Khinda9f354812017-08-25 16:18:28 +0000106 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/appc/conf/appc.properties
107 - name: appc-aaiclient-properties
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400108 hostPath:
Mandeep Khinda9f354812017-08-25 16:18:28 +0000109 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/appc/conf/aaiclient.properties
110 - name: sdnc-aaiclient-properties
111 hostPath:
112 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdnc/conf/aaiclient.properties
Borislav Glozman5197e2e2017-07-24 10:45:28 +0300113 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000114 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
yurynfcef9942017-10-26 17:10:50 +0300115#{{ end }}