blob: 8caf2860431ef2cba9e5537ccb26d2cce336bec0 [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
mayankg270385091152018-01-16 09:42:30 +000052 name: appc-conf
53 subPath: appc.properties
Mandeep Khinda9f354812017-08-25 16:18:28 +000054 - mountPath: /opt/openecomp/appc/data/properties/aaiclient.properties
mayankg270385091152018-01-16 09:42:30 +000055 name: appc-conf
56 subPath: aaiclient.properties
Mandeep Khinda9743d842017-10-05 22:08:08 +000057 - mountPath: /opt/onap/sdnc/data/properties/aaiclient.properties
mayankg270385091152018-01-16 09:42:30 +000058 name: appc-conf
59 subPath: aaiclient.properties
yurynd0707be2017-09-27 14:54:18 +030060 - mountPath: /var/log/onap
61 name: appc-logs
62 - mountPath: /opt/opendaylight/current/etc/org.ops4j.pax.logging.cfg
63 name: appc-log-config
mayankg270385091152018-01-16 09:42:30 +000064 subPath: org.ops4j.pax.logging.cfg
Mandeep Khindad6ea9872017-06-24 11:49:37 -040065 ports:
66 - containerPort: 8181
67 - containerPort: 1830
68 readinessProbe:
69 tcpSocket:
70 port: 8181
71 initialDelaySeconds: 5
72 periodSeconds: 10
yurynd0707be2017-09-27 14:54:18 +030073 - image: {{ .Values.image.filebeat }}
74 imagePullPolicy: {{ .Values.pullPolicy }}
75 name: filebeat-onap
76 volumeMounts:
77 - mountPath: /usr/share/filebeat/filebeat.yml
78 name: filebeat-conf
mayankg270385091152018-01-16 09:42:30 +000079 subPath: filebeat.yml
yurynd0707be2017-09-27 14:54:18 +030080 - mountPath: /var/log/onap
81 name: appc-logs
82 - mountPath: /usr/share/filebeat/data
83 name: appc-data-filebeat
Mandeep Khindad6ea9872017-06-24 11:49:37 -040084 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030085 - name: localtime
86 hostPath:
87 path: /etc/localtime
yurynd0707be2017-09-27 14:54:18 +030088 - name: filebeat-conf
mayankg270385091152018-01-16 09:42:30 +000089 configMap:
90 name: appc-filebeat-configmap
yurynd0707be2017-09-27 14:54:18 +030091 - name: appc-log-config
mayankg270385091152018-01-16 09:42:30 +000092 configMap:
93 name: appc-logging-cfg-configmap
yurynd0707be2017-09-27 14:54:18 +030094 - name: appc-logs
95 emptyDir: {}
96 - name: appc-data-filebeat
97 emptyDir: {}
mayankg270385091152018-01-16 09:42:30 +000098 - name: appc-conf
99 configMap:
100 name: appc-conf-configmap
Borislav Glozman5197e2e2017-07-24 10:45:28 +0300101 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000102 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
kiranyafd583132017-11-22 12:34:34 +0000103#{{ end }}