blob: 35e947093c87e844084884b496bffc4e84481e2d [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:
vaibhav_16deca6719fe2018-02-14 09:48:43 +00008 replicas: {{ .Values.appcReplicas }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -04009 selector:
10 matchLabels:
11 app: appc
12 template:
13 metadata:
14 labels:
15 app: appc
16 name: appc
Mandeep Khindad6ea9872017-06-24 11:49:37 -040017 spec:
kiranyafd583132017-11-22 12:34:34 +000018 initContainers:
19 - command:
20 - /root/ready.py
21 args:
22 - --container-name
23 - appc-db-container
24 env:
25 - name: NAMESPACE
26 valueFrom:
27 fieldRef:
28 apiVersion: v1
29 fieldPath: metadata.namespace
30 image: {{ .Values.image.readiness }}
31 imagePullPolicy: {{ .Values.pullPolicy }}
32 name: appc-readiness
Mandeep Khindad6ea9872017-06-24 11:49:37 -040033 containers:
34 - command:
35 - /opt/openecomp/appc/bin/startODL.sh
36 env:
37 - name: MYSQL_ROOT_PASSWORD
38 value: openECOMP1.0
39 - name: SDNC_CONFIG_DIR
Alexis de Talhouƫt91c77102017-09-26 10:29:32 -040040 value: /opt/openecomp/appc/data/properties
Mandeep Khindad6ea9872017-06-24 11:49:37 -040041 - name: APPC_CONFIG_DIR
42 value: /opt/openecomp/appc/data/properties
43 - name: DMAAP_TOPIC_ENV
44 value: SUCCESS
kerenj6ca15a72017-08-23 12:05:23 +000045 image: {{ .Values.image.appc }}
46 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040047 name: appc-controller-container
48 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030049 - mountPath: /etc/localtime
50 name: localtime
51 readOnly: true
Mandeep Khinda9f354812017-08-25 16:18:28 +000052 - mountPath: /opt/openecomp/appc/data/properties/appc.properties
mayankg270385091152018-01-16 09:42:30 +000053 name: appc-conf
54 subPath: appc.properties
Mandeep Khinda9f354812017-08-25 16:18:28 +000055 - mountPath: /opt/openecomp/appc/data/properties/aaiclient.properties
mayankg270385091152018-01-16 09:42:30 +000056 name: appc-conf
57 subPath: aaiclient.properties
Mandeep Khinda9743d842017-10-05 22:08:08 +000058 - mountPath: /opt/onap/sdnc/data/properties/aaiclient.properties
mayankg270385091152018-01-16 09:42:30 +000059 name: appc-conf
60 subPath: aaiclient.properties
yurynd0707be2017-09-27 14:54:18 +030061 - mountPath: /var/log/onap
62 name: appc-logs
63 - mountPath: /opt/opendaylight/current/etc/org.ops4j.pax.logging.cfg
64 name: appc-log-config
mayankg270385091152018-01-16 09:42:30 +000065 subPath: org.ops4j.pax.logging.cfg
Mandeep Khindad6ea9872017-06-24 11:49:37 -040066 ports:
67 - containerPort: 8181
68 - containerPort: 1830
69 readinessProbe:
70 tcpSocket:
71 port: 8181
72 initialDelaySeconds: 5
73 periodSeconds: 10
yurynd0707be2017-09-27 14:54:18 +030074 - image: {{ .Values.image.filebeat }}
75 imagePullPolicy: {{ .Values.pullPolicy }}
76 name: filebeat-onap
77 volumeMounts:
78 - mountPath: /usr/share/filebeat/filebeat.yml
79 name: filebeat-conf
mayankg270385091152018-01-16 09:42:30 +000080 subPath: filebeat.yml
yurynd0707be2017-09-27 14:54:18 +030081 - mountPath: /var/log/onap
82 name: appc-logs
83 - mountPath: /usr/share/filebeat/data
84 name: appc-data-filebeat
Mandeep Khindad6ea9872017-06-24 11:49:37 -040085 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030086 - name: localtime
87 hostPath:
88 path: /etc/localtime
yurynd0707be2017-09-27 14:54:18 +030089 - name: filebeat-conf
mayankg270385091152018-01-16 09:42:30 +000090 configMap:
91 name: appc-filebeat-configmap
yurynd0707be2017-09-27 14:54:18 +030092 - name: appc-log-config
mayankg270385091152018-01-16 09:42:30 +000093 configMap:
94 name: appc-logging-cfg-configmap
yurynd0707be2017-09-27 14:54:18 +030095 - name: appc-logs
96 emptyDir: {}
97 - name: appc-data-filebeat
98 emptyDir: {}
mayankg270385091152018-01-16 09:42:30 +000099 - name: appc-conf
100 configMap:
101 name: appc-conf-configmap
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 }}