1 # Copyright © 2018 Amdocs, Bell Canada, AT&T
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
16 apiVersion: extensions/v1beta1
19 name: {{ include "common.fullname" . }}
20 namespace: {{ include "common.namespace" . }}
22 app: {{ include "common.name" . }}
23 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
24 release: {{ .Release.Name }}
25 heritage: {{ .Release.Service }}
27 replicas: {{ .Values.replicaCount }}
31 app: {{ include "common.name" . }}
32 release: {{ .Release.Name }}
33 name: {{ .Release.Name }}
35 checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
52 fieldPath: metadata.namespace
53 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
54 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
55 name: {{ include "common.name" . }}-readiness
57 - name: {{ include "common.name" . }}
58 image: "{{ .Values.global.dockerhubRepository | default .Values.dockerhubRepository }}/{{ .Values.image }}"
59 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
61 - mountPath: /etc/localtime
66 - mountPath: /usr/local/etc/haproxy/haproxy.cfg
67 {{ if .Values.global.installSidecarSecurity }}
68 subPath: haproxy-pluggable-security.cfg
74 - containerPort: {{ .Values.service.internalPort }}
75 - containerPort: {{ .Values.service.internalPort2 }}
76 # disable liveness probe when breakpoints set in debugger
77 # so K8s doesn't restart unresponsive container
78 {{- if eq .Values.liveness.enabled true }}
81 port: {{ .Values.service.internalPort2 }}
82 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
83 periodSeconds: {{ .Values.liveness.periodSeconds }}
88 port: {{ .Values.service.internalPort2 }}
92 value: OOM_ReadinessCheck
93 {{ if .Values.global.installSidecarSecurity }}
95 value: Basic YWFpQGFhaS5vbmFwLm9yZzpkZW1vMTIzNDU2IQ==
97 - name: X-TransactionId
100 value: application/json
101 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
102 periodSeconds: {{ .Values.readiness.periodSeconds }}
104 {{ include "common.resources" . }}
105 {{- if .Values.nodeSelector }}
107 {{ toYaml .Values.nodeSelector | indent 8 }}
109 {{- if .Values.affinity }}
111 {{ toYaml .Values.affinity | indent 8 }}
118 - name: aai-service-log
123 name: aai-deployment-configmap
125 - name: "{{ include "common.namespace" . }}-docker-registry-key"