blob: c80bdd40ec9e785ebfd0c966919dbde566f4c0c3 [file] [log] [blame]
vaibhav_16dece04b2fe2018-03-22 09:07:12 +00001# Copyright © 2017 Amdocs, Bell Canada
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
yurynfcef9942017-10-26 17:10:50 +030015#{{ if not .Values.disableAppcAppc }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040016apiVersion: extensions/v1beta1
17kind: Deployment
18metadata:
19 name: appc
BorislavG8bfc6cf2018-02-27 15:04:26 +000020 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040021spec:
vaibhav_16deca6719fe2018-02-14 09:48:43 +000022 replicas: {{ .Values.appcReplicas }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040023 selector:
24 matchLabels:
25 app: appc
26 template:
27 metadata:
28 labels:
29 app: appc
30 name: appc
Mandeep Khindad6ea9872017-06-24 11:49:37 -040031 spec:
kiranyafd583132017-11-22 12:34:34 +000032 initContainers:
33 - command:
34 - /root/ready.py
35 args:
36 - --container-name
37 - appc-db-container
38 env:
39 - name: NAMESPACE
40 valueFrom:
41 fieldRef:
42 apiVersion: v1
43 fieldPath: metadata.namespace
44 image: {{ .Values.image.readiness }}
45 imagePullPolicy: {{ .Values.pullPolicy }}
46 name: appc-readiness
Mandeep Khindad6ea9872017-06-24 11:49:37 -040047 containers:
48 - command:
49 - /opt/openecomp/appc/bin/startODL.sh
50 env:
51 - name: MYSQL_ROOT_PASSWORD
52 value: openECOMP1.0
53 - name: SDNC_CONFIG_DIR
Alexis de Talhouët91c77102017-09-26 10:29:32 -040054 value: /opt/openecomp/appc/data/properties
Mandeep Khindad6ea9872017-06-24 11:49:37 -040055 - name: APPC_CONFIG_DIR
56 value: /opt/openecomp/appc/data/properties
57 - name: DMAAP_TOPIC_ENV
58 value: SUCCESS
BorislavG8bfc6cf2018-02-27 15:04:26 +000059 - name: MYSQL_HOST
60 value: appc-dbhost
kerenj6ca15a72017-08-23 12:05:23 +000061 image: {{ .Values.image.appc }}
62 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040063 name: appc-controller-container
64 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030065 - mountPath: /etc/localtime
66 name: localtime
67 readOnly: true
BorislavG8bfc6cf2018-02-27 15:04:26 +000068 - mountPath: /opt/openecomp/appc/data/properties/dblib.properties
69 name: appc-openecomp-appc-data-properties
70 subPath: dblib.properties
71 - mountPath: /opt/openecomp/appc/data/properties/svclogic.properties
72 name: appc-openecomp-appc-data-properties
73 subPath: svclogic.properties
Mandeep Khinda9f354812017-08-25 16:18:28 +000074 - mountPath: /opt/openecomp/appc/data/properties/appc.properties
BorislavG8bfc6cf2018-02-27 15:04:26 +000075 name: appc-openecomp-appc-data-properties
mayankg270385091152018-01-16 09:42:30 +000076 subPath: appc.properties
Mandeep Khinda9f354812017-08-25 16:18:28 +000077 - mountPath: /opt/openecomp/appc/data/properties/aaiclient.properties
BorislavG8bfc6cf2018-02-27 15:04:26 +000078 name: appc-openecomp-appc-data-properties
mayankg270385091152018-01-16 09:42:30 +000079 subPath: aaiclient.properties
BorislavG8bfc6cf2018-02-27 15:04:26 +000080 - mountPath: /opt/openecomp/appc/svclogic/config/svclogic.properties
81 name: appc-openecomp-appc-svclogic-config
82 subPath: svclogic.properties
83 - mountPath: /opt/openecomp/appc/svclogic/bin/showActiveGraphs.sh
84 name: appc-openecomp-appc-svclogic-bin
85 subPath: showActiveGraphs.sh
86 - mountPath: /opt/openecomp/appc/bin/startODL.sh
87 name: appc-openecomp-appc-bin
88 subPath: startODL.sh
89 - mountPath: /opt/openecomp/appc/bin/installAppcDb.sh
90 name: appc-openecomp-appc-bin
91 subPath: installAppcDb.sh
92 - mountPath: /opt/onap/sdnc/data/properties/dblib.properties
93 name: appc-onap-sdnc-data-properties
94 subPath: dblib.properties
95 - mountPath: /opt/onap/sdnc/data/properties/svclogic.properties
96 name: appc-onap-sdnc-data-properties
97 subPath: svclogic.properties
Mandeep Khinda9743d842017-10-05 22:08:08 +000098 - mountPath: /opt/onap/sdnc/data/properties/aaiclient.properties
BorislavG8bfc6cf2018-02-27 15:04:26 +000099 name: appc-onap-sdnc-data-properties
mayankg270385091152018-01-16 09:42:30 +0000100 subPath: aaiclient.properties
BorislavG8bfc6cf2018-02-27 15:04:26 +0000101 - mountPath: /opt/onap/sdnc/svclogic/config/svclogic.properties
102 name: appc-onap-sdnc-svclogic-config
103 subPath: svclogic.properties
104 - mountPath: /opt/onap/sdnc/svclogic/bin/showActiveGraphs.sh
105 name: appc-onap-sdnc-svclogic-bin
106 subPath: showActiveGraphs.sh
107 - mountPath: /opt/onap/sdnc/bin/startODL.sh
108 name: appc-onap-sdnc-bin
109 subPath: startODL.sh
110 - mountPath: /opt/onap/sdnc/bin/installSdncDb.sh
111 name: appc-onap-sdnc-bin
112 subPath: installSdncDb.sh
yurynd0707be2017-09-27 14:54:18 +0300113 - mountPath: /var/log/onap
114 name: appc-logs
115 - mountPath: /opt/opendaylight/current/etc/org.ops4j.pax.logging.cfg
116 name: appc-log-config
mayankg270385091152018-01-16 09:42:30 +0000117 subPath: org.ops4j.pax.logging.cfg
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400118 ports:
119 - containerPort: 8181
120 - containerPort: 1830
121 readinessProbe:
122 tcpSocket:
123 port: 8181
124 initialDelaySeconds: 5
125 periodSeconds: 10
yurynd0707be2017-09-27 14:54:18 +0300126 - image: {{ .Values.image.filebeat }}
127 imagePullPolicy: {{ .Values.pullPolicy }}
128 name: filebeat-onap
129 volumeMounts:
130 - mountPath: /usr/share/filebeat/filebeat.yml
131 name: filebeat-conf
mayankg270385091152018-01-16 09:42:30 +0000132 subPath: filebeat.yml
yurynd0707be2017-09-27 14:54:18 +0300133 - mountPath: /var/log/onap
134 name: appc-logs
135 - mountPath: /usr/share/filebeat/data
136 name: appc-data-filebeat
Mandeep Khindad6ea9872017-06-24 11:49:37 -0400137 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +0300138 - name: localtime
139 hostPath:
140 path: /etc/localtime
yurynd0707be2017-09-27 14:54:18 +0300141 - name: filebeat-conf
mayankg270385091152018-01-16 09:42:30 +0000142 configMap:
143 name: appc-filebeat-configmap
yurynd0707be2017-09-27 14:54:18 +0300144 - name: appc-log-config
mayankg270385091152018-01-16 09:42:30 +0000145 configMap:
146 name: appc-logging-cfg-configmap
yurynd0707be2017-09-27 14:54:18 +0300147 - name: appc-logs
148 emptyDir: {}
149 - name: appc-data-filebeat
150 emptyDir: {}
BorislavG8bfc6cf2018-02-27 15:04:26 +0000151 - name: appc-openecomp-appc-data-properties
mayankg270385091152018-01-16 09:42:30 +0000152 configMap:
BorislavG8bfc6cf2018-02-27 15:04:26 +0000153 name: appc-openecomp-appc-data-properties-configmap
154 - name: appc-openecomp-appc-svclogic-config
155 configMap:
156 name: appc-openecomp-appc-svclogic-config-configmap
157 - name: appc-openecomp-appc-svclogic-bin
158 configMap:
159 name: appc-openecomp-appc-svclogic-bin-configmap
160 defaultMode: 0755
161 - name: appc-openecomp-appc-bin
162 configMap:
163 name: appc-openecomp-appc-bin-configmap
164 defaultMode: 0755
165 - name: appc-onap-sdnc-data-properties
166 configMap:
167 name: appc-onap-sdnc-data-properties-configmap
168 - name: appc-onap-sdnc-svclogic-config
169 configMap:
170 name: appc-onap-sdnc-svclogic-config-configmap
171 - name: appc-onap-sdnc-svclogic-bin
172 configMap:
173 name: appc-onap-sdnc-svclogic-bin-configmap
174 defaultMode: 0755
175 - name: appc-onap-sdnc-bin
176 configMap:
177 name: appc-onap-sdnc-bin-configmap
178 defaultMode: 0755
Borislav Glozman5197e2e2017-07-24 10:45:28 +0300179 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +0000180 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
kiranyafd583132017-11-22 12:34:34 +0000181#{{ end }}