2 # ============LICENSE_START=======================================================
3 # Copyright (C) 2021 Nordix Foundation.
4 # ================================================================================
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.
17 # SPDX-License-Identifier: Apache-2.0
18 # ============LICENSE_END=========================================================
24 name: {{ include "common.fullname" . }}
25 namespace: {{ include "common.namespace" . }}
27 app: {{ include "common.name" . }}
28 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
29 release: {{ include "common.release" . }}
30 heritage: {{ .Release.Service }}
32 replicas: {{ .Values.replicaCount }}
35 app: {{ include "common.name" . }}
39 app: {{ include "common.name" . }}
40 release: {{ include "common.release" . }}
53 fieldPath: metadata.namespace
54 image: {{ include "repositoryGenerator.image.readiness" . }}
55 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
56 name: {{ include "common.name" . }}-readiness
57 {{ include "common.certInitializer.initContainer" . | nindent 6 }}
60 {{ if .Values.global.centralizedLoggingEnabled }}{{ include "common.log.sidecar" . | nindent 8 }}{{ end }}
62 - name: {{ include "common.name" . }}
63 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
64 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
66 - containerPort: {{ .Values.service.internalPort }}
67 # disable liveness probe when breakpoints set in debugger
68 # so K8s doesn't restart unresponsive container
69 {{- if eq .Values.liveness.enabled true }}
72 port: {{ .Values.service.internalPort }}
73 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
74 periodSeconds: {{ .Values.liveness.periodSeconds }}
78 port: {{ .Values.service.internalPort }}
79 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
80 periodSeconds: {{ .Values.readiness.periodSeconds }}
81 volumeMounts: {{ include "common.certInitializer.volumeMount" . | nindent 10 }}
83 mountPath: {{ .Values.log.path }}
84 - mountPath: /etc/nginx/conf.d/default.conf
85 name: {{ include "common.fullname" . }}-config
88 {{ include "common.resources" . | indent 12 }}
89 {{- if .Values.nodeSelector }}
91 {{ toYaml .Values.nodeSelector | indent 10 }}
93 {{- if .Values.affinity }}
95 {{ toYaml .Values.affinity | indent 10 }}
97 serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
98 volumes: {{ include "common.certInitializer.volumes" . | nindent 8 }}
99 - name: {{ include "common.fullname" . }}-config
101 name: {{ include "common.fullname" . }}
107 {{ if .Values.global.centralizedLoggingEnabled }}{{ include "common.log.volumes" . | nindent 8 }}{{ end }}
109 - name: "{{ include "common.namespace" . }}-docker-registry-key"