1 # Copyright (c) 2018 Amdocs, Bell Canada, AT&T
2 # Modifications Copyright (c) 2020 Nokia, Orange
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
20 name: {{ include "common.fullname" . }}
21 namespace: {{ include "common.namespace" . }}
23 app: {{ include "common.name" . }}
24 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
25 release: {{ include "common.release" . }}
26 heritage: {{ .Release.Service }}
30 app: {{ include "common.name" . }}
31 replicas: {{ .Values.replicaCount }}
35 app: {{ include "common.name" . }}
36 release: {{ include "common.release" . }}
37 name: {{ include "common.release" . }}
39 checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
56 fieldPath: metadata.namespace
57 image: {{ include "repositoryGenerator.image.readiness" . }}
58 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
59 name: {{ include "common.name" . }}-readiness
61 - name: {{ include "common.name" . }}
62 image: "{{ include "repositoryGenerator.dockerHubRepository" . }}/{{ .Values.image }}"
63 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
65 - mountPath: /etc/localtime
70 - mountPath: /usr/local/etc/haproxy/haproxy.cfg
71 {{ if .Values.global.installSidecarSecurity }}
72 subPath: haproxy-pluggable-security.cfg
77 - mountPath: /etc/ssl/private/aai.pem
81 - containerPort: {{ .Values.service.internalPort }}
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: {{ .Values.service.internalPort }}
88 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
89 periodSeconds: {{ .Values.liveness.periodSeconds }}
94 port: {{ .Values.service.internalPort }}
98 value: OOM_ReadinessCheck
99 {{ if .Values.global.installSidecarSecurity }}
100 - name: Authorization
101 value: Basic YWFpQGFhaS5vbmFwLm9yZzpkZW1vMTIzNDU2IQ==
103 - name: X-TransactionId
104 value: OOM_ReadinessCheck_TID
106 value: application/json
107 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
108 periodSeconds: {{ .Values.readiness.periodSeconds }}
110 {{ include "common.resources" . }}
111 {{- if .Values.nodeSelector }}
113 {{ toYaml .Values.nodeSelector | indent 8 }}
115 {{- if .Values.affinity }}
117 {{ toYaml .Values.affinity | indent 8 }}
124 - name: aai-service-log
129 name: aai-deployment-configmap
132 secretName: aai-haproxy-secret
134 - name: "{{ include "common.namespace" . }}-docker-registry-key"