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: extensions/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 replicas: {{ .Values.replicaCount }}
30 app: {{ include "common.name" . }}
31 release: {{ .Release.Name }}
35 - /root/job_complete.py
38 - {{ include "common.fullname" . }}-galera-config
44 fieldPath: metadata.namespace
45 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
46 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
47 name: {{ include "common.name" . }}-readiness
49 - name: {{ include "common.name" . }}
50 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
51 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
53 - containerPort: {{ .Values.service.internalPort }}
54 # disable liveness probe when breakpoints set in debugger
55 # so K8s doesn't restart unresponsive container
56 {{- if eq .Values.liveness.enabled true }}
59 port: {{ .Values.service.internalPort }}
60 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
61 periodSeconds: {{ .Values.liveness.periodSeconds }}
65 port: {{ .Values.service.internalPort }}
66 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
67 periodSeconds: {{ .Values.readiness.periodSeconds }}
69 - name: ASDC_CLIENT_REST_HOST
70 value: sdc-be.{{ include "common.namespace" . }}
71 - name: ASDC_CLIENT_REST_AUTH
72 value: "{{ .Values.config.asdcclientrestauth }}"
73 - name: ASDC_CLIENT_REST_PORT
74 value: "{{ .Values.config.asdcclientrestport }}"
76 value: https://aai.{{ include "common.namespace" . }}:{{ .Values.config.vidaaiport }}
77 - name: VID_ECOMP_SHARED_CONTEXT_REST_URL
78 value: http://portal-app.{{ include "common.namespace" . }}:{{ .Values.config.onapport }}/ONAPPORTAL/context
79 - name: VID_MSO_SERVER_URL
80 value: http://so.{{ include "common.namespace" . }}:{{ .Values.config.msoport }}/onap/so/infra
82 value: "{{ .Values.config.vidmsopass }}"
83 - name: MSO_DME2_SERVER_URL
84 value: "{{ .Values.config.msodme2serverurl }}"
85 - name: MSO_DME2_ENABLED
86 value: {{ .Values.global.debugEnabled | default .Values.debugEnabled | quote }}
87 - name: VID_ECOMP_REDIRECT_URL
88 value: https://{{ .Values.config.portalhost }}:{{ .Values.config.onapport }}/ONAPPORTAL/login.htm
89 - name: VID_ECOMP_REST_URL
90 value: https://portal-app:{{ .Values.config.onapportrest }}/ONAPPORTAL/auxapi
91 - name: VID_ROLE_ACCESS_CENTRALIZED
92 value: "{{ .Values.config.roleaccesscentralized }}"
93 - name: VID_CONTACT_US_LINK
94 value: "{{ .Values.config.vidcontactuslink }}"
95 - name: VID_UEB_URL_LIST
96 value: message-router.{{ include "common.namespace" . }}
97 - name: VID_MYSQL_HOST
98 value: "{{ .Values.config.vidmysqlhost }}"
99 - name: VID_MYSQL_PORT
100 value: "{{ .Values.config.vidmysqlport }}"
101 - name: VID_MYSQL_DBNAME
102 value: "{{ .Values.config.vidmysqldbname }}"
103 - name: VID_MYSQL_USER
104 value: "{{ .Values.config.vidmysqluser }}"
105 - name: VID_MYSQL_PASS
106 value: "{{ .Values.config.vidmysqlpassword }}"
108 # secretKeyRef: {name: {{ include "common.fullname" . }}, key: vid-password}
109 - name: VID_MYSQL_MAXCONNECTIONS
110 value: "{{ .Values.config.vidmysqlmaxconnections }}"
112 - mountPath: /etc/localtime
115 - mountPath: /var/log/onap
117 - mountPath: /tmp/logback.xml
121 {{ include "common.resources" . | indent 12 }}
122 {{- if .Values.nodeSelector }}
124 {{ toYaml .Values.nodeSelector | indent 10 }}
126 {{- if .Values.affinity }}
128 {{ toYaml .Values.affinity | indent 10 }}
130 # side car containers
131 - name: filebeat-onap
132 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
133 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
135 - mountPath: /usr/share/filebeat/filebeat.yml
137 subPath: filebeat.yml
138 - mountPath: /var/log/onap
140 - mountPath: /usr/share/filebeat/data
141 name: vid-data-filebeat
146 - name: filebeat-conf
148 name: {{ include "common.fullname" . }}-filebeat-configmap
151 - name: vid-data-filebeat
155 name: {{ include "common.fullname" . }}-log-configmap
157 - name: "{{ include "common.namespace" . }}-docker-registry-key"