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: {{ include "common.release" . }}
24 heritage: {{ .Release.Service }}
26 serviceName: "{{ .Values.service.name }}-cluster"
27 replicas: {{ .Values.replicaCount }}
28 podManagementPolicy: Parallel
32 app: {{ include "common.name" . }}
33 release: {{ include "common.release" . }}
36 - name: {{ include "common.name" . }}-readiness
41 - {{.Values.config.mariadbGaleraContName}}
47 fieldPath: metadata.namespace
48 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
49 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
50 - name: {{ include "common.name" . }}-chown
52 command: ["sh", "-c", "chown -R {{ .Values.config.odlUid }}:{{ .Values.config.odlGid}} {{ .Values.persistence.mdsalPath }}"]
54 - mountPath: {{ .Values.persistence.mdsalPath }}
55 name: {{ include "common.fullname" . }}-data
57 - name: {{ include "common.name" . }}
58 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
59 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
61 - /opt/appc/bin/startODL.sh
63 - containerPort: {{ .Values.service.internalPort }}
64 - containerPort: {{ .Values.service.externalPort2 }}
67 port: {{ .Values.service.internalPort }}
68 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
69 periodSeconds: {{ .Values.readiness.periodSeconds }}
71 - name: MYSQL_ROOT_PASSWORD
72 {{- include "common.secret.envFromSecret" (dict "global" . "uid" "db-root-pass" "key" "password") | indent 14}}
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/data/properties/bath_config.csv
108 name: onap-appc-data-properties
109 subPath: bath_config.csv
110 - mountPath: /opt/onap/appc/svclogic/config/svclogic.properties
111 name: onap-appc-svclogic-config
112 subPath: svclogic.properties
113 - mountPath: /opt/onap/appc/svclogic/bin/showActiveGraphs.sh
114 name: onap-appc-svclogic-bin
115 subPath: showActiveGraphs.sh
116 - mountPath: /opt/onap/appc/bin/startODL.sh
119 - mountPath: /opt/onap/appc/bin/installAppcDb.sh
121 subPath: installAppcDb.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/installSdncDb.sh
142 subPath: installSdncDb.sh
143 - mountPath: {{ .Values.persistence.mdsalPath }}
144 name: {{ include "common.fullname" . }}-data
145 - mountPath: /var/log/onap
147 - mountPath: /opt/onap/appc/data/org.ops4j.pax.logging.cfg
149 subPath: org.ops4j.pax.logging.cfg
151 {{ include "common.resources" . | indent 12 }}
152 {{- if .Values.nodeSelector }}
154 {{ toYaml .Values.nodeSelector | indent 10 }}
156 {{- if .Values.affinity }}
158 {{ toYaml .Values.affinity | indent 10 }}
161 # side car containers
162 - name: filebeat-onap
163 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
164 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
166 - mountPath: /usr/share/filebeat/filebeat.yml
168 subPath: filebeat.yml
169 - mountPath: /var/log/onap
171 - mountPath: /usr/share/filebeat/data
177 - name: filebeat-conf
179 name: {{ include "common.fullname" . }}-filebeat
182 name: {{ include "common.fullname" . }}-logging-cfg
185 - name: data-filebeat
187 - name: onap-appc-data-properties
189 name: {{ include "common.fullname" . }}-onap-appc-data-properties
190 - name: onap-appc-svclogic-config
192 name: {{ include "common.fullname" . }}-onap-appc-svclogic-config
193 - name: onap-appc-svclogic-bin
195 name: {{ include "common.fullname" . }}-onap-appc-svclogic-bin
197 - name: onap-appc-bin
199 name: {{ include "common.fullname" . }}-onap-appc-bin
201 - name: onap-sdnc-data-properties
203 name: {{ include "common.fullname" . }}-onap-sdnc-data-properties
204 - name: onap-sdnc-svclogic-config
206 name: {{ include "common.fullname" . }}-onap-sdnc-svclogic-config
207 - name: onap-sdnc-svclogic-bin
209 name: {{ include "common.fullname" . }}-onap-sdnc-svclogic-bin
211 - name: onap-sdnc-bin
213 name: {{ include "common.fullname" . }}-onap-sdnc-bin
215 {{ if not .Values.persistence.enabled }}
216 - name: {{ include "common.fullname" . }}-data
219 volumeClaimTemplates:
221 name: {{ include "common.fullname" . }}-data
223 name: {{ include "common.fullname" . }}
224 chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
225 release: "{{ include "common.release" . }}"
226 heritage: "{{ .Release.Service }}"
229 - {{ .Values.persistence.accessMode }}
230 storageClassName: {{ include "common.storageClass" . }}
233 storage: {{ .Values.persistence.size }}