blob: f4593b0d7303824f3c3ced35be0555c09c31119c [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
Mandeep Khindad6ea9872017-06-24 11:49:37 -040016 spec:
kiranyafd583132017-11-22 12:34:34 +000017 initContainers:
18 - command:
19 - /root/ready.py
20 args:
21 - --container-name
22 - appc-db-container
23 env:
24 - name: NAMESPACE
25 valueFrom:
26 fieldRef:
27 apiVersion: v1
28 fieldPath: metadata.namespace
29 image: {{ .Values.image.readiness }}
30 imagePullPolicy: {{ .Values.pullPolicy }}
31 name: appc-readiness
Mandeep Khindad6ea9872017-06-24 11:49:37 -040032 containers:
33 - command:
34 - /opt/openecomp/appc/bin/startODL.sh
35 env:
36 - name: MYSQL_ROOT_PASSWORD
37 value: openECOMP1.0
38 - name: SDNC_CONFIG_DIR
Alexis de Talhouƫt91c77102017-09-26 10:29:32 -040039 value: /opt/openecomp/appc/data/properties
Mandeep Khindad6ea9872017-06-24 11:49:37 -040040 - name: APPC_CONFIG_DIR
41 value: /opt/openecomp/appc/data/properties
42 - name: DMAAP_TOPIC_ENV
43 value: SUCCESS
kerenj6ca15a72017-08-23 12:05:23 +000044 image: {{ .Values.image.appc }}
45 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040046 name: appc-controller-container
47 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030048 - mountPath: /etc/localtime
49 name: localtime
50 readOnly: true
Mandeep Khinda9f354812017-08-25 16:18:28 +000051 - mountPath: /opt/openecomp/appc/data/properties/appc.properties
52 name: appc-properties
53 - mountPath: /opt/openecomp/appc/data/properties/aaiclient.properties
54 name: appc-aaiclient-properties
Mandeep Khinda9743d842017-10-05 22:08:08 +000055 - mountPath: /opt/onap/sdnc/data/properties/aaiclient.properties
Mandeep Khinda9f354812017-08-25 16:18:28 +000056 name: sdnc-aaiclient-properties
yurynd0707be2017-09-27 14:54:18 +030057 - mountPath: /var/log/onap
58 name: appc-logs
59 - mountPath: /opt/opendaylight/current/etc/org.ops4j.pax.logging.cfg
60 name: appc-log-config
Mandeep Khindad6ea9872017-06-24 11:49:37 -040061 ports:
62 - containerPort: 8181
63 - containerPort: 1830
64 readinessProbe:
65 tcpSocket:
66 port: 8181
67 initialDelaySeconds: 5
68 periodSeconds: 10
yurynd0707be2017-09-27 14:54:18 +030069 - image: {{ .Values.image.filebeat }}
70 imagePullPolicy: {{ .Values.pullPolicy }}
71 name: filebeat-onap
72 volumeMounts:
73 - mountPath: /usr/share/filebeat/filebeat.yml
74 name: filebeat-conf
75 - mountPath: /var/log/onap
76 name: appc-logs
77 - mountPath: /usr/share/filebeat/data
78 name: appc-data-filebeat
Mandeep Khindad6ea9872017-06-24 11:49:37 -040079 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030080 - name: localtime
81 hostPath:
82 path: /etc/localtime
yurynd0707be2017-09-27 14:54:18 +030083 - name: filebeat-conf
84 hostPath:
85 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/filebeat/log4j/filebeat.yml
86 - name: appc-log-config
87 hostPath:
88 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/log/appc/org.ops4j.pax.logging.cfg
89 - name: appc-logs
90 emptyDir: {}
91 - name: appc-data-filebeat
92 emptyDir: {}
Mandeep Khinda9f354812017-08-25 16:18:28 +000093 - name: appc-properties
Mandeep Khindad6ea9872017-06-24 11:49:37 -040094 hostPath:
Mandeep Khinda9f354812017-08-25 16:18:28 +000095 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/appc/conf/appc.properties
96 - name: appc-aaiclient-properties
Mandeep Khindad6ea9872017-06-24 11:49:37 -040097 hostPath:
Mandeep Khinda9f354812017-08-25 16:18:28 +000098 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/appc/conf/aaiclient.properties
99 - name: sdnc-aaiclient-properties
100 hostPath:
101 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdnc/conf/aaiclient.properties
Borislav Glozman5197e2e2017-07-24 10:45:28 +0300102 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000103 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
kiranyafd583132017-11-22 12:34:34 +0000104#{{ end }}