2 # Copyright © 2018 Amdocs, Bell Canada , ZTE
3 # Copyright © 2021 Orange
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.
20 name: {{ include "common.fullname" . }}
21 namespace: {{ include "common.namespace" . }}
23 app: {{ include "common.name" . }}
24 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
25 release: {{ include "common.release" . }}
26 heritage: {{ .Release.Service }}
30 app: {{ include "common.name" . }}
31 replicas: {{ .Values.replicaCount }}
35 app: {{ include "common.name" . }}
36 release: {{ include "common.release" . }}
38 sidecar.istio.io/inject: "{{.Values.istioSidecar}}"
41 {{ include "common.certInitializer.initContainer" . | indent 6 | trim }}
52 fieldPath: metadata.namespace
53 image: {{ include "repositoryGenerator.image.readiness" . }}
54 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
55 name: {{ include "common.name" . }}-readiness
57 - name: {{ include "common.name" . }}
58 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
59 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
61 - containerPort: {{ .Values.service.internalPort }}
62 name: {{ .Values.service.name }}
63 - containerPort: {{ .Values.service.internalPortHttps }}
64 name: {{ .Values.service.name }}-https
65 # disable liveness probe when breakpoints set in debugger
66 # so K8s doesn't restart unresponsive container
67 {{- if eq .Values.liveness.enabled true }}
70 port: {{ .Values.service.internalPort }}
71 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
72 periodSeconds: {{ .Values.liveness.periodSeconds }}
76 port: {{ .Values.service.internalPort }}
77 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
78 periodSeconds: {{ .Values.readiness.periodSeconds }}
81 value: msb-consul.{{ include "common.namespace" . }}
83 value: msb-discovery.{{ include "common.namespace" . }}
85 value: {{ .Values.config.routeLabels }}
87 {{ include "common.certInitializer.volumeMount" . | indent 10 | trim }}
88 - mountPath: /etc/localtime
91 - mountPath: /usr/local/apiroute-works/logs
92 name: {{ include "common.fullname" . }}-logs
93 - mountPath: /usr/local/openresty/nginx/msb-enabled/msbhttps.conf
94 name: {{ include "common.fullname" . }}-nginx-conf
95 subPath: msbhttps.conf
97 {{ include "common.resources" . | indent 12 }}
98 {{- if .Values.nodeSelector }}
100 {{ toYaml .Values.nodeSelector | indent 10 }}
102 {{- if .Values.affinity }}
104 {{ toYaml .Values.affinity | indent 10 }}
106 # side car containers
107 - name: filebeat-onap
108 image: {{ include "repositoryGenerator.image.logging" . }}
109 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
111 - name: {{ include "common.fullname" . }}-filebeat-conf
112 mountPath: /usr/share/filebeat/filebeat.yml
113 subPath: filebeat.yml
114 - name: {{ include "common.fullname" . }}-data-filebeat
115 mountPath: /usr/share/filebeat/data
116 - name: {{ include "common.fullname" . }}-logs
117 mountPath: /var/log/onap/msb/msb-eag
118 - mountPath: /opt/ajsc/etc/config/logback.xml
119 name: {{ include "common.fullname" . }}-log-conf
121 serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
123 {{ include "common.certInitializer.volumes" . | indent 8 | trim }}
124 - name: {{ include "common.fullname" . }}-log-conf
126 name: {{ include "common.fullname" . }}-log
127 - name: {{ include "common.fullname" . }}-nginx-conf
129 name: {{ include "common.fullname" . }}-nginx
130 - name: {{ include "common.fullname" . }}-filebeat-conf
132 name: {{ include "common.release" . }}-msb-filebeat-configmap
133 - name: {{ include "common.fullname" . }}-data-filebeat
135 - name: {{ include "common.fullname" . }}-logs
141 - name: "{{ include "common.namespace" . }}-docker-registry-key"