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 app.kubernetes.io/name: {{ include "common.name" . }}
27 {{- if .Chart.AppVersion }}
28 version: {{ .Chart.AppVersion | replace "+" "_" }}
30 version: {{ .Chart.Version | replace "+" "_" }}
32 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
33 release: {{ include "common.release" . }}
34 heritage: {{ .Release.Service }}
38 app: {{ include "common.name" . }}
39 replicas: {{ .Values.replicaCount }}
41 type: {{ .Values.updateStrategy.type }}
42 {{- if (eq "RollingUpdate" .Values.updateStrategy.type) }}
44 maxUnavailable: {{ .Values.updateStrategy.maxUnavailable }}
45 maxSurge: {{ .Values.updateStrategy.maxSurge }}
50 app: {{ include "common.name" . }}
51 release: {{ include "common.release" . }}
52 app.kubernetes.io/name: {{ include "common.name" . }}
53 {{- if .Chart.AppVersion }}
54 version: {{ .Chart.AppVersion | replace "+" "_" }}
56 version: {{ .Chart.Version | replace "+" "_" }}
58 name: {{ include "common.release" . }}
60 checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
62 terminationGracePeriodSeconds: {{ .Values.service.terminationGracePeriodSeconds }}
78 fieldPath: metadata.namespace
79 image: {{ include "repositoryGenerator.image.readiness" . }}
80 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
81 name: {{ include "common.name" . }}-readiness
84 memory: {{ .Values.haproxy.initContainers.resources.memory }}
85 cpu: {{ .Values.haproxy.initContainers.resources.cpu }}
87 memory: {{ .Values.haproxy.initContainers.resources.memory }}
88 cpu: {{ .Values.haproxy.initContainers.resources.cpu }}
90 - name: {{ include "common.name" . }}
91 image: "{{ include "repositoryGenerator.dockerHubRepository" . }}/{{ .Values.image }}"
92 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
94 - mountPath: /etc/localtime
99 - mountPath: /usr/local/etc/haproxy/haproxy.cfg
100 {{ if .Values.global.installSidecarSecurity }}
101 subPath: haproxy-pluggable-security.cfg
107 - containerPort: {{ .Values.service.internalPort }}
108 name: {{ .Values.service.portName }}
109 - containerPort: {{ .Values.metricsService.internalPort }}
110 name: {{ .Values.metricsService.portName }}
111 # disable liveness probe when breakpoints set in debugger
112 # so K8s doesn't restart unresponsive container
113 {{- if eq .Values.liveness.enabled true }}
116 port: {{ .Values.service.internalPort }}
117 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
118 periodSeconds: {{ .Values.liveness.periodSeconds }}
123 port: {{ .Values.service.internalPort }}
127 value: OOM_ReadinessCheck
128 {{ if .Values.global.installSidecarSecurity }}
129 - name: Authorization
130 value: Basic YWFpQGFhaS5vbmFwLm9yZzpkZW1vMTIzNDU2IQ==
132 - name: X-TransactionId
133 value: OOM_ReadinessCheck_TID
135 value: application/json
136 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
137 periodSeconds: {{ .Values.readiness.periodSeconds }}
138 resources: {{ include "common.resources" . | nindent 10 }}
139 {{- if .Values.nodeSelector }}
141 {{ toYaml .Values.nodeSelector | indent 8 }}
143 {{- if .Values.affinity }}
145 {{ toYaml .Values.affinity | indent 8 }}
147 serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
152 - name: aai-service-log
157 name: aai-deployment-configmap
159 - name: "{{ include "common.namespace" . }}-docker-registry-key"