2 # Copyright © 2018 Amdocs, AT&T
3 # Modifications Copyright © 2018 Bell Canada
4 # Modifications Copyright © 2020,2021 Orange
5 # Modifications Copyright © 2023 Nordix Foundation
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
11 # http://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
23 name: {{ include "common.fullname" . }}
24 namespace: {{ include "common.namespace" . }}
26 app: {{ include "common.name" . }}
27 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
28 release: {{ include "common.release" . }}
29 heritage: {{ .Release.Service }}
33 app: {{ include "common.name" . }}
34 replicas: {{ .Values.replicaCount }}
36 type: {{ .Values.updateStrategy.type }}
37 {{- if (eq "RollingUpdate" .Values.updateStrategy.type) }}
39 maxUnavailable: {{ .Values.updateStrategy.maxUnavailable }}
40 maxSurge: {{ .Values.updateStrategy.maxSurge }}
45 app: {{ include "common.name" . }}
46 release: {{ include "common.release" . }}
50 - name: {{ include "common.name" . }}
51 image: {{ include "repositoryGenerator.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 .Values.liveness.enabled }}
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: KEY_STORE_PASSWORD
73 value: /opt/app/babel/config
75 - mountPath: /etc/localtime
78 - mountPath: /opt/app/babel/config/application.properties
80 subPath: application.properties
81 - mountPath: /opt/app/babel/config/artifact-generator.properties
83 subPath: artifact-generator.properties
84 - mountPath: /opt/app/babel/config/tosca-mappings.json
86 subPath: tosca-mappings.json
87 - mountPath: /opt/app/babel/config/babel-auth.properties
89 subPath: babel-auth.properties
90 - mountPath: /opt/app/babel/config/auth
92 - mountPath: {{ .Values.log.path }}
94 - mountPath: /opt/app/babel/config/logback.xml
97 resources: {{ include "common.resources" . | nindent 12 }}
98 {{- if .Values.nodeSelector }}
100 {{ toYaml .Values.nodeSelector | indent 8 }}
102 {{- if .Values.affinity }}
104 {{ toYaml .Values.affinity | indent 8 }}
107 # side car containers
108 {{ include "common.log.sidecar" . | nindent 8 }}
109 serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
116 name: {{ include "common.fullname" . }}-configmap
119 secretName: {{ include "common.fullname" . }}-babel-secrets
122 {{ include "common.log.volumes" (dict "dot" . "configMapNamePrefix" (tpl .Values.logConfigMapNamePrefix .)) | nindent 8 }}
125 - name: "{{ include "common.namespace" . }}-docker-registry-key"