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.
16 apiVersion: extensions/v1beta1
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 }}
27 replicas: {{ .Values.replicaCount }}
31 app: {{ include "common.name" . }}
32 release: {{ include "common.release" . }}
36 - /root/job_complete.py
39 - {{ include "common.fullname" . }}-galera-config
45 fieldPath: metadata.namespace
46 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
47 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
48 name: {{ include "common.name" . }}-readiness
50 - name: {{ include "common.name" . }}
51 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
52 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
54 - containerPort: {{ .Values.service.internalPort }}
55 # disable liveness probe when breakpoints set in debugger
56 # so K8s doesn't restart unresponsive container
57 {{- if eq .Values.liveness.enabled true }}
60 port: {{ .Values.service.internalPort }}
61 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
62 periodSeconds: {{ .Values.liveness.periodSeconds }}
66 port: {{ .Values.service.internalPort }}
67 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
68 periodSeconds: {{ .Values.readiness.periodSeconds }}
70 - name: ASDC_CLIENT_REST_HOST
71 value: sdc-be.{{ include "common.namespace" . }}
72 - name: ASDC_CLIENT_REST_AUTH
73 value: "{{ .Values.config.asdcclientrestauth }}"
74 - name: ASDC_CLIENT_REST_PORT
75 value: "{{ .Values.config.asdcclientrestport }}"
76 - name: ASDC_CLIENT_REST_PROTOCOL
79 value: https://aai.{{ include "common.namespace" . }}:{{ .Values.config.vidaaiport }}
80 - name: VID_ECOMP_SHARED_CONTEXT_REST_URL
81 value: http://portal-app.{{ include "common.namespace" . }}:{{ .Values.config.onapport }}/ONAPPORTAL/context
82 - name: VID_MSO_SERVER_URL
83 value: http://so.{{ include "common.namespace" . }}:{{ .Values.config.msoport }}/onap/so/infra
85 value: "{{ .Values.config.vidmsopass }}"
86 - name: MSO_DME2_SERVER_URL
87 value: "{{ .Values.config.msodme2serverurl }}"
88 - name: MSO_DME2_ENABLED
89 value: {{ .Values.global.debugEnabled | default .Values.debugEnabled | quote }}
90 - name: VID_ECOMP_REDIRECT_URL
91 value: https://{{ .Values.config.portalhost }}:{{ .Values.config.onapport }}/ONAPPORTAL/login.htm
92 - name: VID_ECOMP_REST_URL
93 value: https://portal-app:{{ .Values.config.onapportrest }}/ONAPPORTAL/auxapi
94 - name: VID_ROLE_ACCESS_CENTRALIZED
95 value: "{{ .Values.config.roleaccesscentralized }}"
96 - name: VID_CONTACT_US_LINK
97 value: "{{ .Values.config.vidcontactuslink }}"
98 - name: VID_KEYSTORE_PASSWORD
99 value: {{ .Values.config.vidkeystorepassword | quote }}
100 - name: VID_UEB_URL_LIST
101 value: message-router.{{ include "common.namespace" . }}
102 - name: VID_MYSQL_HOST
103 value: {{ index .Values "mariadb-galera" "service" "name" }}
104 - name: VID_MYSQL_PORT
105 value: "{{ index .Values "mariadb-galera" "service" "internalPort" }}"
106 - name: VID_MYSQL_DBNAME
107 value: {{ index .Values "mariadb-galera" "config" "mysqlDatabase" }}
108 - name: VID_MYSQL_USER
109 {{- include "common.secret.envFromSecret" (dict "global" . "uid" "vid-db-user-secret" "key" "login") | indent 14 }}
110 - name: VID_MYSQL_PASS
111 {{- include "common.secret.envFromSecret" (dict "global" . "uid" "vid-db-user-secret" "key" "password") | indent 14 }}
112 - name: VID_MYSQL_MAXCONNECTIONS
113 value: "{{ .Values.config.vidmysqlmaxconnections }}"
115 - mountPath: /opt/app/vid/etc
117 - mountPath: /etc/localtime
120 - mountPath: /var/log/onap
122 - mountPath: /tmp/logback.xml
126 {{ include "common.resources" . | indent 12 }}
127 {{- if .Values.nodeSelector }}
129 {{ toYaml .Values.nodeSelector | indent 10 }}
131 {{- if .Values.affinity }}
133 {{ toYaml .Values.affinity | indent 10 }}
135 # side car containers
136 - name: filebeat-onap
137 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
138 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
140 - mountPath: /usr/share/filebeat/filebeat.yml
142 subPath: filebeat.yml
143 - mountPath: /var/log/onap
145 - mountPath: /usr/share/filebeat/data
146 name: vid-data-filebeat
150 secretName: {{ include "common.fullname" . }}-certs
154 - name: filebeat-conf
156 name: {{ include "common.fullname" . }}-filebeat-configmap
159 - name: vid-data-filebeat
163 name: {{ include "common.fullname" . }}-log-configmap
165 - name: "{{ include "common.namespace" . }}-docker-registry-key"