1 # Copyright © 2018 AT&T, Amdocs, Bell Canada Intellectual Property. All rights reserved.
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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.
15 apiVersion: apps/v1beta1
18 name: {{ include "common.fullname" . }}
19 namespace: {{ include "common.namespace" . }}
21 app: {{ include "common.name" . }}
22 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
23 release: {{ .Release.Name }}
24 heritage: {{ .Release.Service }}
26 serviceName: "{{ .Values.service.name }}-cluster"
27 replicas: {{ .Values.replicaCount }}
28 podManagementPolicy: Parallel
32 app: {{ include "common.name" . }}
33 release: {{ .Release.Name }}
36 - name: "{{ include "common.namespace" . }}-docker-registry-key"
42 - {{.Values.config.mariadbGaleraContName}}
48 fieldPath: metadata.namespace
49 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
50 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
51 name: {{ include "common.name" . }}-readiness
53 - name: {{ include "common.name" . }}
54 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
55 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
57 - /opt/appc/bin/startODL.sh
59 - containerPort: {{ .Values.service.internalPort }}
60 - containerPort: {{ .Values.service.externalPort2 }}
64 - /opt/appc/bin/health_check.sh
65 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
66 periodSeconds: {{ .Values.readiness.periodSeconds }}
68 - name: MYSQL_ROOT_PASSWORD
71 name: {{ template "common.fullname" . }}
73 - name: SDNC_CONFIG_DIR
74 value: "{{ .Values.config.configDir }}"
75 - name: APPC_CONFIG_DIR
76 value: "{{ .Values.config.configDir }}"
77 - name: DMAAP_TOPIC_ENV
78 value: "{{ .Values.config.dmaapTopic }}"
80 value: "{{ .Values.config.enableAAF }}"
81 - name: ENABLE_ODL_CLUSTER
82 value: "{{ .Values.config.enableClustering }}"
84 value: "{{ .Values.replicaCount }}"
86 - mountPath: /etc/localtime
89 - mountPath: /opt/onap/appc/data/properties/dblib.properties
90 name: onap-appc-data-properties
91 subPath: dblib.properties
92 - mountPath: /opt/onap/appc/data/properties/svclogic.properties
93 name: onap-appc-data-properties
94 subPath: svclogic.properties
95 - mountPath: /opt/onap/appc/data/properties/appc.properties
96 name: onap-appc-data-properties
97 subPath: appc.properties
98 - mountPath: /opt/onap/appc/data/properties/aaiclient.properties
99 name: onap-appc-data-properties
100 subPath: aaiclient.properties
101 - mountPath: /opt/onap/appc/data/properties/cadi.properties
102 name: onap-appc-data-properties
103 subPath: cadi.properties
104 - mountPath: /opt/onap/appc/data/properties/aaa-app-config.xml
105 name: onap-appc-data-properties
106 subPath: aaa-app-config.xml
107 - mountPath: /opt/onap/appc/svclogic/config/svclogic.properties
108 name: onap-appc-svclogic-config
109 subPath: svclogic.properties
110 - mountPath: /opt/onap/appc/svclogic/bin/showActiveGraphs.sh
111 name: onap-appc-svclogic-bin
112 subPath: showActiveGraphs.sh
113 - mountPath: /opt/onap/appc/bin/startODL.sh
116 - mountPath: /opt/onap/appc/bin/installAppcDb.sh
118 subPath: installAppcDb.sh
119 - mountPath: /opt/onap/appc/bin/installFeatures.sh
121 subPath: installFeatures.sh
122 - mountPath: /opt/onap/appc/bin/health_check.sh
124 subPath: health_check.sh
125 - mountPath: /opt/onap/ccsdk/data/properties/dblib.properties
126 name: onap-sdnc-data-properties
127 subPath: dblib.properties
128 - mountPath: /opt/onap/ccsdk/data/properties/svclogic.properties
129 name: onap-sdnc-data-properties
130 subPath: svclogic.properties
131 - mountPath: /opt/onap/ccsdk/data/properties/aaiclient.properties
132 name: onap-sdnc-data-properties
133 subPath: aaiclient.properties
134 - mountPath: /opt/onap/ccsdk/svclogic/config/svclogic.properties
135 name: onap-sdnc-svclogic-config
136 subPath: svclogic.properties
137 - mountPath: /opt/onap/ccsdk/svclogic/bin/showActiveGraphs.sh
138 name: onap-sdnc-svclogic-bin
139 subPath: showActiveGraphs.sh
140 - mountPath: /opt/onap/ccsdk/bin/startODL.sh
143 - mountPath: /opt/onap/ccsdk/bin/installSdncDb.sh
145 subPath: installSdncDb.sh
146 - mountPath: {{ .Values.persistence.mdsalPath }}
147 name: {{ include "common.fullname" . }}-data
148 - mountPath: /var/log/onap
150 - mountPath: /opt/opendaylight/current/etc/org.ops4j.pax.logging.cfg
152 subPath: org.ops4j.pax.logging.cfg
154 {{ include "common.resources" . | indent 12 }}
155 {{- if .Values.nodeSelector }}
157 {{ toYaml .Values.nodeSelector | indent 10 }}
159 {{- if .Values.affinity }}
161 {{ toYaml .Values.affinity | indent 10 }}
164 # side car containers
165 - name: filebeat-onap
166 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
167 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
169 - mountPath: /usr/share/filebeat/filebeat.yml
171 subPath: filebeat.yml
172 - mountPath: /var/log/onap
174 - mountPath: /usr/share/filebeat/data
180 - name: filebeat-conf
182 name: {{ include "common.fullname" . }}-filebeat
185 name: {{ include "common.fullname" . }}-logging-cfg
188 - name: data-filebeat
190 - name: onap-appc-data-properties
192 name: {{ include "common.fullname" . }}-onap-appc-data-properties
193 - name: onap-appc-svclogic-config
195 name: {{ include "common.fullname" . }}-onap-appc-svclogic-config
196 - name: onap-appc-svclogic-bin
198 name: {{ include "common.fullname" . }}-onap-appc-svclogic-bin
200 - name: onap-appc-bin
202 name: {{ include "common.fullname" . }}-onap-appc-bin
204 - name: onap-sdnc-data-properties
206 name: {{ include "common.fullname" . }}-onap-sdnc-data-properties
207 - name: onap-sdnc-svclogic-config
209 name: {{ include "common.fullname" . }}-onap-sdnc-svclogic-config
210 - name: onap-sdnc-svclogic-bin
212 name: {{ include "common.fullname" . }}-onap-sdnc-svclogic-bin
214 - name: onap-sdnc-bin
216 name: {{ include "common.fullname" . }}-onap-sdnc-bin
218 {{ if not .Values.persistence.enabled }}
219 - name: {{ include "common.fullname" . }}-data
222 volumeClaimTemplates:
224 name: {{ include "common.fullname" . }}-data
226 name: {{ include "common.fullname" . }}
228 accessModes: [ {{ .Values.persistence.accessMode }} ]
229 storageClassName: {{ include "common.fullname" . }}-data
232 storage: {{ .Values.persistence.size }}