2 # Copyright (c) 2018 Amdocs, Bell Canada, AT&T
3 # Modifications Copyright (c) 2020 Nokia, Orange
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.
21 name: {{ include "common.fullname" . }}
22 namespace: {{ include "common.namespace" . }}
24 app: {{ include "common.name" . }}
25 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
26 release: {{ include "common.release" . }}
27 heritage: {{ .Release.Service }}
31 app: {{ include "common.name" . }}
32 replicas: {{ .Values.replicaCount }}
34 type: {{ .Values.updateStrategy.type }}
35 {{- if (eq "RollingUpdate" .Values.updateStrategy.type) }}
37 maxUnavailable: {{ .Values.updateStrategy.maxUnavailable }}
38 maxSurge: {{ .Values.updateStrategy.maxSurge }}
43 app: {{ include "common.name" . }}
44 release: {{ include "common.release" . }}
45 name: {{ include "common.release" . }}
47 checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
49 terminationGracePeriodSeconds: {{ .Values.service.terminationGracePeriodSeconds }}
50 initContainers: {{ include "common.certInitializer.initContainer" . | nindent 6 }}
65 fieldPath: metadata.namespace
66 image: {{ include "repositoryGenerator.image.readiness" . }}
67 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
68 name: {{ include "common.name" . }}-readiness
71 memory: {{ .Values.haproxy.initContainers.resources.memory }}
72 cpu: {{ .Values.haproxy.initContainers.resources.cpu }}
74 memory: {{ .Values.haproxy.initContainers.resources.memory }}
75 cpu: {{ .Values.haproxy.initContainers.resources.cpu }}
77 - name: {{ include "common.name" . }}
78 image: "{{ include "repositoryGenerator.dockerHubRepository" . }}/{{ .Values.image }}"
79 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
81 - mountPath: /etc/localtime
86 - mountPath: /usr/local/etc/haproxy/haproxy.cfg
87 {{ if .Values.global.installSidecarSecurity }}
88 subPath: haproxy-pluggable-security.cfg
93 {{- include "common.certInitializer.volumeMount" . | nindent 8 }}
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: {{ (eq "true" (include "common.needTLS" .)) | ternary .Values.service.internalPort .Values.service.internalPlainPort }}
104 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
105 periodSeconds: {{ .Values.liveness.periodSeconds }}
110 port: {{ (eq "true" (include "common.needTLS" .)) | ternary .Values.service.internalPort .Values.service.internalPlainPort }}
112 scheme: {{ (eq "true" (include "common.needTLS" .)) | ternary "HTTPS" "HTTP" }}
115 value: OOM_ReadinessCheck
116 {{ if .Values.global.installSidecarSecurity }}
117 - name: Authorization
118 value: Basic YWFpQGFhaS5vbmFwLm9yZzpkZW1vMTIzNDU2IQ==
120 - name: X-TransactionId
121 value: OOM_ReadinessCheck_TID
123 value: application/json
124 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
125 periodSeconds: {{ .Values.readiness.periodSeconds }}
126 resources: {{ include "common.resources" . | nindent 10 }}
127 {{- if .Values.nodeSelector }}
129 {{ toYaml .Values.nodeSelector | indent 8 }}
131 {{- if .Values.affinity }}
133 {{ toYaml .Values.affinity | indent 8 }}
135 serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
140 - name: aai-service-log
145 name: aai-deployment-configmap
146 {{ include "common.certInitializer.volumes" . | nindent 8 }}
148 - name: "{{ include "common.namespace" . }}-docker-registry-key"