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 }}
36 app: {{ include "common.name" . }}
37 release: {{ include "common.release" . }}
38 name: {{ include "common.release" . }}
40 checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
42 initContainers: {{ include "common.certInitializer.initContainer" . | nindent 6 }}
57 fieldPath: metadata.namespace
58 image: {{ include "repositoryGenerator.image.readiness" . }}
59 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
60 name: {{ include "common.name" . }}-readiness
62 - name: {{ include "common.name" . }}
63 image: "{{ include "repositoryGenerator.dockerHubRepository" . }}/{{ .Values.image }}"
64 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
66 - mountPath: /etc/localtime
71 - mountPath: /usr/local/etc/haproxy/haproxy.cfg
72 {{ if .Values.global.installSidecarSecurity }}
73 subPath: haproxy-pluggable-security.cfg
78 {{- include "common.certInitializer.volumeMount" . | nindent 8 }}
80 - containerPort: {{ .Values.service.internalPort }}
81 - containerPort: {{ .Values.service.internalPlainPort }}
82 # disable liveness probe when breakpoints set in debugger
83 # so K8s doesn't restart unresponsive container
84 {{- if eq .Values.liveness.enabled true }}
87 port: {{ (eq "true" (include "common.needTLS" .)) | ternary .Values.service.internalPort .Values.service.internalPlainPort }}
88 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
89 periodSeconds: {{ .Values.liveness.periodSeconds }}
94 port: {{ (eq "true" (include "common.needTLS" .)) | ternary .Values.service.internalPort .Values.service.internalPlainPort }}
96 scheme: {{ (eq "true" (include "common.needTLS" .)) | ternary "HTTPS" "HTTP" }}
99 value: OOM_ReadinessCheck
100 {{ if .Values.global.installSidecarSecurity }}
101 - name: Authorization
102 value: Basic YWFpQGFhaS5vbmFwLm9yZzpkZW1vMTIzNDU2IQ==
104 - name: X-TransactionId
105 value: OOM_ReadinessCheck_TID
107 value: application/json
108 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
109 periodSeconds: {{ .Values.readiness.periodSeconds }}
111 {{ include "common.resources" . }}
112 {{- if .Values.nodeSelector }}
114 {{ toYaml .Values.nodeSelector | indent 8 }}
116 {{- if .Values.affinity }}
118 {{ toYaml .Values.affinity | indent 8 }}
120 serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
125 - name: aai-service-log
130 name: aai-deployment-configmap
131 {{ include "common.certInitializer.volumes" . | nindent 8 }}
133 - name: "{{ include "common.namespace" . }}-docker-registry-key"