1 # Copyright © 2017 Amdocs, Bell Canada
2 # Copyright © 2020 Samsung Electronics
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
19 name: {{ include "common.fullname" . }}
20 namespace: {{ include "common.namespace" . }}
22 app: {{ include "common.name" . }}
23 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
24 release: {{ include "common.release" . }}
25 heritage: {{ .Release.Service }}
29 app: {{ include "common.name" . }}
30 replicas: {{ .Values.replicaCount }}
34 app: {{ include "common.name" . }}
35 release: {{ include "common.release" . }}
42 - {{ include "common.fullname" . }}-galera-config
48 fieldPath: metadata.namespace
49 image: "{{ include "common.repository" . }}/{{ .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 - containerPort: {{ .Values.service.internalPort }}
58 # disable liveness probe when breakpoints set in debugger
59 # so K8s doesn't restart unresponsive container
60 {{- if eq .Values.liveness.enabled true }}
63 port: {{ .Values.service.internalPort }}
64 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
65 periodSeconds: {{ .Values.liveness.periodSeconds }}
69 port: {{ .Values.service.internalPort }}
70 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
71 periodSeconds: {{ .Values.readiness.periodSeconds }}
73 - name: ASDC_CLIENT_REST_HOST
74 value: sdc-be.{{ include "common.namespace" . }}
75 - name: ASDC_CLIENT_REST_AUTH
76 value: "{{ .Values.config.asdcclientrestauth }}"
77 - name: ASDC_CLIENT_REST_PORT
78 value: "{{ .Values.config.asdcclientrestport }}"
79 - name: ASDC_CLIENT_REST_PROTOCOL
82 value: https://aai.{{ include "common.namespace" . }}:{{ .Values.config.vidaaiport }}
83 - name: VID_ECOMP_SHARED_CONTEXT_REST_URL
84 value: http://portal-app.{{ include "common.namespace" . }}:{{ .Values.config.onapport }}/ONAPPORTAL/context
85 - name: VID_MSO_SERVER_URL
86 value: http://so.{{ include "common.namespace" . }}:{{ .Values.config.msoport }}/onap/so/infra
88 value: "{{ .Values.config.vidmsopass }}"
89 - name: MSO_DME2_SERVER_URL
90 value: "{{ .Values.config.msodme2serverurl }}"
91 - name: MSO_DME2_ENABLED
92 value: {{ .Values.global.debugEnabled | default .Values.debugEnabled | quote }}
93 - name: VID_ECOMP_REDIRECT_URL
94 value: https://{{ .Values.config.portalhost }}:{{ .Values.config.onapport }}/ONAPPORTAL/login.htm
95 - name: VID_ECOMP_REST_URL
96 value: https://portal-app:{{ .Values.config.onapportrest }}/ONAPPORTAL/auxapi
97 - name: VID_ROLE_ACCESS_CENTRALIZED
98 value: "{{ .Values.config.roleaccesscentralized }}"
99 - name: VID_CONTACT_US_LINK
100 value: "{{ .Values.config.vidcontactuslink }}"
101 - name: VID_KEYSTORE_PASSWORD
102 value: {{ .Values.config.vidkeystorepassword | quote }}
103 - name: VID_UEB_URL_LIST
104 value: message-router.{{ include "common.namespace" . }}
105 - name: VID_MYSQL_HOST
106 value: {{ index .Values "mariadb-galera" "service" "name" }}
107 - name: VID_MYSQL_PORT
108 value: "{{ index .Values "mariadb-galera" "service" "internalPort" }}"
109 - name: VID_MYSQL_DBNAME
110 value: {{ index .Values "mariadb-galera" "config" "mysqlDatabase" }}
111 - name: VID_MYSQL_USER
112 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "vid-db-user-secret" "key" "login") | indent 14 }}
113 - name: VID_MYSQL_PASS
114 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "vid-db-user-secret" "key" "password") | indent 14 }}
115 - name: VID_MYSQL_MAXCONNECTIONS
116 value: "{{ .Values.config.vidmysqlmaxconnections }}"
118 - mountPath: /opt/app/vid/etc
120 - mountPath: /etc/localtime
123 - mountPath: /var/log/onap
125 - mountPath: /tmp/logback.xml
129 {{ include "common.resources" . | indent 12 }}
130 {{- if .Values.nodeSelector }}
132 {{ toYaml .Values.nodeSelector | indent 10 }}
134 {{- if .Values.affinity }}
136 {{ toYaml .Values.affinity | indent 10 }}
138 # side car containers
139 - name: filebeat-onap
140 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
141 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
143 - mountPath: /usr/share/filebeat/filebeat.yml
145 subPath: filebeat.yml
146 - mountPath: /var/log/onap
148 - mountPath: /usr/share/filebeat/data
149 name: vid-data-filebeat
153 secretName: {{ include "common.fullname" . }}-certs
157 - name: filebeat-conf
159 name: {{ include "common.fullname" . }}-filebeat-configmap
162 - name: vid-data-filebeat
166 name: {{ include "common.fullname" . }}-log-configmap
168 - name: "{{ include "common.namespace" . }}-docker-registry-key"