1 # Copyright © 2017 Amdocs, Bell Canada
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: {{ include "common.servicename" . }}-cluster
27 replicas: {{ .Values.replicaCount }}
28 podManagementPolicy: Parallel
32 app: {{ include "common.name" . }}
33 release: {{ .Release.Name }}
40 - {{ .Values.mysql.nameOverride }}
46 fieldPath: metadata.namespace
47 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
48 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
49 name: {{ include "common.name" . }}-readiness
51 - name: {{ include "common.name" . }}
52 image: "{{ .Values.global.repository | default .Values.repository }}/{{ .Values.image }}"
53 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
54 command: ["/bin/bash"]
55 args: ["-c", "/opt/sdnc/bin/startODL.sh"]
57 - containerPort: {{ .Values.service.internalPort }}
58 - containerPort: {{ .Values.service.internalPort2 }}
59 - containerPort: {{ .Values.service.internalPort3 }}
60 - containerPort: {{ .Values.service.clusterPort }}
63 port: {{ .Values.service.internalPort }}
64 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
65 periodSeconds: {{ .Values.readiness.periodSeconds }}
67 - name: MYSQL_ROOT_PASSWORD
70 name: {{ template "common.fullname" . }}
72 - name: SDNC_CONFIG_DIR
73 value: "{{ .Values.config.configDir }}"
74 - name: ENABLE_ODL_CLUSTER
75 value: "{{ .Values.config.enableClustering }}"
77 value: "{{ .Values.replicaCount }}"
79 value: "{{.Values.mysql.service.name}}.{{.Release.Namespace}}"
81 - mountPath: /etc/localtime
84 - mountPath: /opt/opendaylight/current/etc/org.ops4j.pax.logging.cfg
85 name: sdnc-logging-cfg-config
86 subPath: org.ops4j.pax.logging.cfg
87 - mountPath: /opt/onap/sdnc/bin/startODL.sh
90 - mountPath: /opt/onap/sdnc/bin/installSdncDb.sh
92 subPath: installSdncDb.sh
93 - mountPath: /opt/onap/sdnc/data/properties/aaiclient.properties
95 subPath: aaiclient.properties
96 - mountPath: /opt/onap/sdnc/data/properties/dblib.properties
97 name: sdnc-dblib-properties
98 subPath: dblib.properties
99 - mountPath: /opt/onap/sdnc/data/properties/svclogic.properties
100 name: sdnc-svclogic-config
101 subPath: svclogic.properties
102 - mountPath: /opt/onap/sdnc/svclogic/config/svclogic.properties
103 name: onap-sdnc-svclogic-config
104 subPath: svclogic.properties
105 - mountPath: /var/log/onap
108 {{ toYaml .Values.resources | indent 12 }}
109 {{- if .Values.nodeSelector }}
111 {{ toYaml .Values.nodeSelector | indent 10 }}
113 {{- if .Values.affinity }}
115 {{ toYaml .Values.affinity | indent 10 }}
118 # side car containers
119 - name: filebeat-onap
120 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
121 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
123 - mountPath: /usr/share/filebeat/filebeat.yml
125 subPath: filebeat.yml
126 - mountPath: /var/log/onap
128 - mountPath: /usr/share/filebeat/data
136 - name: data-filebeat
138 - name: filebeat-conf
140 name: {{ include "common.fullname" . }}-filebeat-configmap
141 - name: sdnc-logging-cfg-config
143 name: {{ include "common.fullname" . }}-log-configmap
146 name: {{ include "common.fullname" . }}-startodl
151 - name: installsdncdb
153 name: {{ include "common.fullname" . }}-installsdncdb
155 - key: installSdncDb.sh
156 path: installSdncDb.sh
158 - name: aaiclient-conf
160 name: {{ include "common.fullname" . }}-aaiclient-properties
162 - key: aaiclient.properties
163 path: aaiclient.properties
165 - name: sdnc-dblib-properties
167 name: {{ include "common.fullname" . }}-dblib-properties
169 - key: dblib.properties
170 path: dblib.properties
172 - name: sdnc-svclogic-config
174 name: {{ include "common.fullname" . }}-svclogic-config
176 - key: svclogic.properties
177 path: svclogic.properties
179 - name: onap-sdnc-svclogic-config
181 name: {{ include "common.fullname" . }}-onap-sdnc-svclogic-config
183 - key: svclogic.properties
184 path: svclogic.properties
188 - name: "{{ include "common.namespace" . }}-docker-registry-key"