2 # Copyright (c) 2018 Amdocs, Bell Canada, AT&T
3 # Modifications Copyright (c) 2020 Nokia, Orange
4 # Modifications Copyright © 2023 Nordix Foundation
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
22 name: {{ include "common.fullname" . }}
23 namespace: {{ include "common.namespace" . }}
25 app: {{ include "common.name" . }}
26 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
27 release: {{ include "common.release" . }}
28 heritage: {{ .Release.Service }}
32 app: {{ include "common.name" . }}
33 replicas: {{ .Values.replicaCount }}
35 type: {{ .Values.updateStrategy.type }}
36 {{- if (eq "RollingUpdate" .Values.updateStrategy.type) }}
38 maxUnavailable: {{ .Values.updateStrategy.maxUnavailable }}
39 maxSurge: {{ .Values.updateStrategy.maxSurge }}
44 app: {{ include "common.name" . }}
45 release: {{ include "common.release" . }}
46 name: {{ include "common.release" . }}
48 checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
50 terminationGracePeriodSeconds: {{ .Values.service.terminationGracePeriodSeconds }}
66 fieldPath: metadata.namespace
67 image: {{ include "repositoryGenerator.image.readiness" . }}
68 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
69 name: {{ include "common.name" . }}-readiness
72 memory: {{ .Values.haproxy.initContainers.resources.memory }}
73 cpu: {{ .Values.haproxy.initContainers.resources.cpu }}
75 memory: {{ .Values.haproxy.initContainers.resources.memory }}
76 cpu: {{ .Values.haproxy.initContainers.resources.cpu }}
78 - name: {{ include "common.name" . }}
79 image: "{{ include "repositoryGenerator.dockerHubRepository" . }}/{{ .Values.image }}"
80 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
82 - mountPath: /etc/localtime
87 - mountPath: /usr/local/etc/haproxy/haproxy.cfg
88 {{ if .Values.global.installSidecarSecurity }}
89 subPath: haproxy-pluggable-security.cfg
95 - containerPort: {{ .Values.service.internalPort }}
96 - containerPort: {{ .Values.service.internalPlainPort }}
97 - containerPort: {{ .Values.metricsService.internalPort }}
98 # disable liveness probe when breakpoints set in debugger
99 # so K8s doesn't restart unresponsive container
100 {{- if eq .Values.liveness.enabled true }}
103 port: {{ .Values.service.internalPlainPort }}
104 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
105 periodSeconds: {{ .Values.liveness.periodSeconds }}
110 port: {{ .Values.service.internalPlainPort }}
114 value: OOM_ReadinessCheck
115 {{ if .Values.global.installSidecarSecurity }}
116 - name: Authorization
117 value: Basic YWFpQGFhaS5vbmFwLm9yZzpkZW1vMTIzNDU2IQ==
119 - name: X-TransactionId
120 value: OOM_ReadinessCheck_TID
122 value: application/json
123 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
124 periodSeconds: {{ .Values.readiness.periodSeconds }}
125 resources: {{ include "common.resources" . | nindent 10 }}
126 {{- if .Values.nodeSelector }}
128 {{ toYaml .Values.nodeSelector | indent 8 }}
130 {{- if .Values.affinity }}
132 {{ toYaml .Values.affinity | indent 8 }}
134 serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
139 - name: aai-service-log
144 name: aai-deployment-configmap
146 - name: "{{ include "common.namespace" . }}-docker-registry-key"