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 }}
34 #dd775k: This container checks if the job that wait for all db instances to be up and initializes the db had finished.
39 # - "sleep 1000000000m"
43 - /tmp/vid-check-job-completion/vid_check_job_completion.py
51 fieldPath: metadata.namespace
52 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
53 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
54 name: {{ include "common.name" . }}-readiness
56 - mountPath: /tmp/vid-check-job-completion
57 name: vid-check-job-completion
59 - name: {{ include "common.name" . }}
60 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
61 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
63 - containerPort: {{ .Values.service.internalPort }}
64 # disable liveness probe when breakpoints set in debugger
65 # so K8s doesn't restart unresponsive container
66 {{- if eq .Values.liveness.enabled true }}
69 port: {{ .Values.service.internalPort }}
70 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
71 periodSeconds: {{ .Values.liveness.periodSeconds }}
75 port: {{ .Values.service.internalPort }}
76 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
77 periodSeconds: {{ .Values.readiness.periodSeconds }}
79 - name: ASDC_CLIENT_REST_HOST
80 value: sdc-be.{{ include "common.namespace" . }}
81 - name: ASDC_CLIENT_REST_AUTH
82 value: "{{ .Values.config.asdcclientrestauth }}"
83 - name: ASDC_CLIENT_REST_PORT
84 value: "{{ .Values.config.asdcclientrestport }}"
86 value: aai.{{ include "common.namespace" . }}
88 value: "{{ .Values.config.vidaaiport }}"
89 - name: VID_ECOMP_SHARED_CONTEXT_REST_URL
90 value: http://portal-app.{{ include "common.namespace" . }}:{{ .Values.config.onapport }}/ONAPPORTAL/context
91 - name: VID_MSO_SERVER_URL
92 value: https://so.{{ include "common.namespace" . }}:{{ .Values.config.msoport }}
94 value: "{{ .Values.config.vidmsopass }}"
95 - name: MSO_DME2_SERVER_URL
96 value: "{{ .Values.config.msodme2serverurl }}"
97 - name: MSO_DME2_ENABLED
98 value: {{ .Values.global.debugEnabled | default .Values.debugEnabled | quote }}
99 - name: VID_ECOMP_REDIRECT_URL
100 value: http://portal-app.{{ include "common.namespace" . }}:{{ .Values.config.onapport }}/ONAPPORTAL/login.htm
101 - name: VID_ECOMP_REST_URL
102 value: http://portal-app.{{ include "common.namespace" . }}:{{ .Values.config.onapport }}/ONAPPORTAL/auxapi
103 - name: VID_CONTACT_US_LINK
104 value: "{{ .Values.config.vidcontactuslink }}"
105 - name: VID_UEB_URL_LIST
106 value: message-router.{{ include "common.namespace" . }}
107 - name: VID_MYSQL_HOST
108 value: "{{ .Values.config.vidmysqlhost }}"
109 - name: VID_MYSQL_PORT
110 value: "{{ .Values.config.vidmysqlport }}"
111 - name: VID_MYSQL_DBNAME
112 value: "{{ .Values.config.vidmysqldbname }}"
113 - name: VID_MYSQL_USER
114 value: "{{ .Values.config.vidmysqluser }}"
115 - name: VID_MYSQL_PASS
116 value: "{{ .Values.config.vidmysqlpassword }}"
118 # secretKeyRef: {name: {{ include "common.fullname" . }}, key: vid-password}
119 - name: VID_MYSQL_MAXCONNECTIONS
120 value: "{{ .Values.config.vidmysqlmaxconnections }}"
122 - mountPath: /etc/localtime
125 - mountPath: /var/log/onap
127 - mountPath: /tmp/logback.xml
131 {{ toYaml .Values.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
156 - name: filebeat-conf
158 name: {{ include "common.fullname" . }}-filebeat-configmap
161 - name: vid-data-filebeat
165 name: {{ include "common.fullname" . }}-log-configmap
166 - name: vid-check-job-completion
168 name: {{ include "common.fullname" . }}-check-job-completion
170 - name: "{{ include "common.namespace" . }}-docker-registry-key"