2 # Copyright © 2017 Amdocs, Bell Canada
3 # Copyright © 2020 Samsung Electronics
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
21 name: {{ include "common.fullname" . }}
22 namespace: {{ include "common.namespace" . }}
24 app: {{ include "common.name" . }}
25 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
26 release: {{ include "common.release" . }}
27 heritage: {{ .Release.Service }}
31 app: {{ include "common.name" . }}
32 replicas: {{ .Values.replicaCount }}
36 app: {{ include "common.name" . }}
37 release: {{ include "common.release" . }}
44 - {{ include "common.fullname" . }}-mariadb-init-config-job
50 fieldPath: metadata.namespace
51 image: "{{ include "common.repository" . }}/{{ .Values.global.readinessImage }}"
52 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
53 name: {{ include "common.name" . }}-readiness
55 - name: {{ include "common.name" . }}
56 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
57 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
59 - containerPort: {{ .Values.service.internalPort }}
60 # disable liveness probe when breakpoints set in debugger
61 # so K8s doesn't restart unresponsive container
62 {{- if eq .Values.liveness.enabled true }}
65 port: {{ .Values.service.internalPort }}
66 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
67 periodSeconds: {{ .Values.liveness.periodSeconds }}
71 port: {{ .Values.service.internalPort }}
72 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
73 periodSeconds: {{ .Values.readiness.periodSeconds }}
75 - name: ASDC_CLIENT_REST_HOST
76 value: sdc-be.{{ include "common.namespace" . }}
77 - name: ASDC_CLIENT_REST_AUTH
78 value: "{{ .Values.config.asdcclientrestauth }}"
79 - name: ASDC_CLIENT_REST_PORT
80 value: "{{ .Values.config.asdcclientrestport }}"
81 - name: ASDC_CLIENT_REST_PROTOCOL
84 value: https://aai.{{ include "common.namespace" . }}:{{ .Values.config.vidaaiport }}
85 - name: VID_ECOMP_SHARED_CONTEXT_REST_URL
86 value: http://portal-app.{{ include "common.namespace" . }}:{{ .Values.config.onapport }}/ONAPPORTAL/context
87 - name: VID_MSO_SERVER_URL
88 value: http://so.{{ include "common.namespace" . }}:{{ .Values.config.msoport }}/onap/so/infra
90 value: "{{ .Values.config.vidmsopass }}"
91 - name: MSO_DME2_SERVER_URL
92 value: "{{ .Values.config.msodme2serverurl }}"
93 - name: MSO_DME2_ENABLED
94 value: {{ .Values.global.debugEnabled | default .Values.debugEnabled | quote }}
95 - name: VID_ECOMP_REDIRECT_URL
96 value: https://{{ .Values.config.portalhost }}:{{ .Values.config.onapport }}/ONAPPORTAL/login.htm
97 - name: VID_ECOMP_REST_URL
98 value: https://portal-app:{{ .Values.config.onapportrest }}/ONAPPORTAL/auxapi
99 - name: VID_ROLE_ACCESS_CENTRALIZED
100 value: "{{ .Values.config.roleaccesscentralized }}"
101 - name: VID_CONTACT_US_LINK
102 value: "{{ .Values.config.vidcontactuslink }}"
103 - name: VID_KEYSTORE_PASSWORD
104 value: {{ .Values.config.vidkeystorepassword | quote }}
105 - name: VID_UEB_URL_LIST
106 value: message-router.{{ include "common.namespace" . }}
107 - name: VID_MYSQL_HOST
108 value: {{ include "common.mariadbService" . }}
109 - name: VID_MYSQL_PORT
110 value: "{{ include "common.mariadbPort" . }}"
111 - name: VID_MYSQL_DBNAME
112 value: {{ index .Values "mariadb-galera" "config" "mysqlDatabase" }}
113 - name: VID_MYSQL_USER
114 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "vid-db-user-secret" "key" "login") | indent 14 }}
115 - name: VID_MYSQL_PASS
116 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "vid-db-user-secret" "key" "password") | indent 14 }}
117 - name: VID_MYSQL_MAXCONNECTIONS
118 value: "{{ .Values.config.vidmysqlmaxconnections }}"
120 - mountPath: /opt/app/vid/etc
122 - mountPath: /etc/localtime
125 - mountPath: /var/log/onap
127 - mountPath: /tmp/logback.xml
131 {{ include "common.resources" . | indent 12 }}
132 {{- if .Values.nodeSelector }}
134 {{ toYaml .Values.nodeSelector | indent 10 }}
136 {{- if .Values.affinity }}
138 {{ toYaml .Values.affinity | indent 10 }}
140 # side car containers
141 - name: filebeat-onap
142 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
143 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
145 - mountPath: /usr/share/filebeat/filebeat.yml
147 subPath: filebeat.yml
148 - mountPath: /var/log/onap
150 - mountPath: /usr/share/filebeat/data
151 name: vid-data-filebeat
155 secretName: {{ include "common.fullname" . }}-certs
159 - name: filebeat-conf
161 name: {{ include "common.fullname" . }}-filebeat-configmap
164 - name: vid-data-filebeat
168 name: {{ include "common.fullname" . }}-log-configmap
170 - name: "{{ include "common.namespace" . }}-docker-registry-key"