blob: 78bef5e22dfb024c465c52b8b3945260ade93bc2 [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
BorislavG8bfc6cf2018-02-27 15:04:26 +00006 namespace: "{{ .Values.nsPrefix }}"
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
BorislavG8bfc6cf2018-02-27 15:04:26 +000045 - name: MYSQL_HOST
46 value: appc-dbhost
kerenj6ca15a72017-08-23 12:05:23 +000047 image: {{ .Values.image.appc }}
48 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040049 name: appc-controller-container
50 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030051 - mountPath: /etc/localtime
52 name: localtime
53 readOnly: true
BorislavG8bfc6cf2018-02-27 15:04:26 +000054 - mountPath: /opt/openecomp/appc/data/properties/dblib.properties
55 name: appc-openecomp-appc-data-properties
56 subPath: dblib.properties
57 - mountPath: /opt/openecomp/appc/data/properties/svclogic.properties
58 name: appc-openecomp-appc-data-properties
59 subPath: svclogic.properties
Mandeep Khinda9f354812017-08-25 16:18:28 +000060 - mountPath: /opt/openecomp/appc/data/properties/appc.properties
BorislavG8bfc6cf2018-02-27 15:04:26 +000061 name: appc-openecomp-appc-data-properties
mayankg270385091152018-01-16 09:42:30 +000062 subPath: appc.properties
Mandeep Khinda9f354812017-08-25 16:18:28 +000063 - mountPath: /opt/openecomp/appc/data/properties/aaiclient.properties
BorislavG8bfc6cf2018-02-27 15:04:26 +000064 name: appc-openecomp-appc-data-properties
mayankg270385091152018-01-16 09:42:30 +000065 subPath: aaiclient.properties
BorislavG8bfc6cf2018-02-27 15:04:26 +000066 - mountPath: /opt/openecomp/appc/svclogic/config/svclogic.properties
67 name: appc-openecomp-appc-svclogic-config
68 subPath: svclogic.properties
69 - mountPath: /opt/openecomp/appc/svclogic/bin/showActiveGraphs.sh
70 name: appc-openecomp-appc-svclogic-bin
71 subPath: showActiveGraphs.sh
72 - mountPath: /opt/openecomp/appc/bin/startODL.sh
73 name: appc-openecomp-appc-bin
74 subPath: startODL.sh
75 - mountPath: /opt/openecomp/appc/bin/installAppcDb.sh
76 name: appc-openecomp-appc-bin
77 subPath: installAppcDb.sh
78 - mountPath: /opt/onap/sdnc/data/properties/dblib.properties
79 name: appc-onap-sdnc-data-properties
80 subPath: dblib.properties
81 - mountPath: /opt/onap/sdnc/data/properties/svclogic.properties
82 name: appc-onap-sdnc-data-properties
83 subPath: svclogic.properties
Mandeep Khinda9743d842017-10-05 22:08:08 +000084 - mountPath: /opt/onap/sdnc/data/properties/aaiclient.properties
BorislavG8bfc6cf2018-02-27 15:04:26 +000085 name: appc-onap-sdnc-data-properties
mayankg270385091152018-01-16 09:42:30 +000086 subPath: aaiclient.properties
BorislavG8bfc6cf2018-02-27 15:04:26 +000087 - mountPath: /opt/onap/sdnc/svclogic/config/svclogic.properties
88 name: appc-onap-sdnc-svclogic-config
89 subPath: svclogic.properties
90 - mountPath: /opt/onap/sdnc/svclogic/bin/showActiveGraphs.sh
91 name: appc-onap-sdnc-svclogic-bin
92 subPath: showActiveGraphs.sh
93 - mountPath: /opt/onap/sdnc/bin/startODL.sh
94 name: appc-onap-sdnc-bin
95 subPath: startODL.sh
96 - mountPath: /opt/onap/sdnc/bin/installSdncDb.sh
97 name: appc-onap-sdnc-bin
98 subPath: installSdncDb.sh
yurynd0707be2017-09-27 14:54:18 +030099 - mountPath: /var/log/onap
100 name: appc-logs
101 - mountPath: /opt/opendaylight/current/etc/org.ops4j.pax.logging.cfg
102 name: appc-log-config
mayankg270385091152018-01-16 09:42:30 +0000103 subPath: org.ops4j.pax.logging.cfg
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400104 ports:
105 - containerPort: 8181
106 - containerPort: 1830
107 readinessProbe:
108 tcpSocket:
109 port: 8181
110 initialDelaySeconds: 5
111 periodSeconds: 10
yurynd0707be2017-09-27 14:54:18 +0300112 - image: {{ .Values.image.filebeat }}
113 imagePullPolicy: {{ .Values.pullPolicy }}
114 name: filebeat-onap
115 volumeMounts:
116 - mountPath: /usr/share/filebeat/filebeat.yml
117 name: filebeat-conf
mayankg270385091152018-01-16 09:42:30 +0000118 subPath: filebeat.yml
yurynd0707be2017-09-27 14:54:18 +0300119 - mountPath: /var/log/onap
120 name: appc-logs
121 - mountPath: /usr/share/filebeat/data
122 name: appc-data-filebeat
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400123 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +0300124 - name: localtime
125 hostPath:
126 path: /etc/localtime
yurynd0707be2017-09-27 14:54:18 +0300127 - name: filebeat-conf
mayankg270385091152018-01-16 09:42:30 +0000128 configMap:
129 name: appc-filebeat-configmap
yurynd0707be2017-09-27 14:54:18 +0300130 - name: appc-log-config
mayankg270385091152018-01-16 09:42:30 +0000131 configMap:
132 name: appc-logging-cfg-configmap
yurynd0707be2017-09-27 14:54:18 +0300133 - name: appc-logs
134 emptyDir: {}
135 - name: appc-data-filebeat
136 emptyDir: {}
BorislavG8bfc6cf2018-02-27 15:04:26 +0000137 - name: appc-openecomp-appc-data-properties
mayankg270385091152018-01-16 09:42:30 +0000138 configMap:
BorislavG8bfc6cf2018-02-27 15:04:26 +0000139 name: appc-openecomp-appc-data-properties-configmap
140 - name: appc-openecomp-appc-svclogic-config
141 configMap:
142 name: appc-openecomp-appc-svclogic-config-configmap
143 - name: appc-openecomp-appc-svclogic-bin
144 configMap:
145 name: appc-openecomp-appc-svclogic-bin-configmap
146 defaultMode: 0755
147 - name: appc-openecomp-appc-bin
148 configMap:
149 name: appc-openecomp-appc-bin-configmap
150 defaultMode: 0755
151 - name: appc-onap-sdnc-data-properties
152 configMap:
153 name: appc-onap-sdnc-data-properties-configmap
154 - name: appc-onap-sdnc-svclogic-config
155 configMap:
156 name: appc-onap-sdnc-svclogic-config-configmap
157 - name: appc-onap-sdnc-svclogic-bin
158 configMap:
159 name: appc-onap-sdnc-svclogic-bin-configmap
160 defaultMode: 0755
161 - name: appc-onap-sdnc-bin
162 configMap:
163 name: appc-onap-sdnc-bin-configmap
164 defaultMode: 0755
Borislav Glozman5197e2e2017-07-24 10:45:28 +0300165 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000166 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
kiranyafd583132017-11-22 12:34:34 +0000167#{{ end }}