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.
22 metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
24 selector: {{- include "common.selectors" . | nindent 4 }}
25 replicas: {{ .Values.replicaCount }}
27 type: {{ .Values.updateStrategy.type }}
28 {{- if (eq "RollingUpdate" .Values.updateStrategy.type) }}
30 maxUnavailable: {{ .Values.updateStrategy.maxUnavailable }}
31 maxSurge: {{ .Values.updateStrategy.maxSurge }}
34 metadata: {{- include "common.templateMetadata" . | nindent 6 }}
37 - name: {{ include "common.name" . }}
38 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
39 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
40 ports: {{ include "common.containerPorts" . | nindent 12 }}
41 # disable liveness probe when breakpoints set in debugger
42 # so K8s doesn't restart unresponsive container
43 {{ if .Values.liveness.enabled }}
46 port: {{ .Values.service.internalPort }}
47 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
48 periodSeconds: {{ .Values.liveness.periodSeconds }}
52 port: {{ .Values.service.internalPort }}
53 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
54 periodSeconds: {{ .Values.readiness.periodSeconds }}
56 - name: KEY_STORE_PASSWORD
59 value: /opt/app/babel/config
61 - mountPath: /opt/app/babel/config/application.properties
63 subPath: application.properties
64 - mountPath: /opt/app/babel/config/artifact-generator.properties
66 subPath: artifact-generator.properties
67 - mountPath: /opt/app/babel/config/tosca-mappings.json
69 subPath: tosca-mappings.json
70 - mountPath: /opt/app/babel/config/babel-auth.properties
72 subPath: babel-auth.properties
73 - mountPath: /opt/app/babel/config/auth
75 - mountPath: {{ .Values.log.path }}
77 - mountPath: /opt/app/babel/config/logback.xml
80 resources: {{ include "common.resources" . | nindent 12 }}
81 {{- if .Values.nodeSelector }}
83 {{ toYaml .Values.nodeSelector | indent 8 }}
85 {{- if .Values.affinity }}
87 {{ toYaml .Values.affinity | indent 8 }}
91 {{ include "common.log.sidecar" . | nindent 8 }}
92 serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
96 name: {{ include "common.fullname" . }}-configmap
99 secretName: {{ include "common.fullname" . }}-babel-secrets
102 {{ include "common.log.volumes" (dict "dot" . "configMapNamePrefix" (tpl .Values.logConfigMapNamePrefix .)) | nindent 8 }}
105 - name: "{{ include "common.namespace" . }}-docker-registry-key"