2 # Copyright © 2018 Amdocs, Bell Canada
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.
19 metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
21 selector: {{- include "common.selectors" . | nindent 4 }}
22 replicas: {{ .Values.replicaCount }}
24 metadata: {{- include "common.templateMetadata" . | nindent 6 }}
27 - name: {{ include "common.name" . }}-readiness
38 fieldPath: metadata.namespace
39 image: {{ include "repositoryGenerator.image.readiness" . }}
40 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
49 - name: {{ include "common.name" . }}
50 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
51 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
52 ports: {{ include "common.containerPorts" . | nindent 12 }}
53 {{ if .Values.liveness.enabled }}
56 port: {{ .Values.service.internalPort }}
57 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
58 periodSeconds: {{ .Values.liveness.periodSeconds }}
59 successThreshold: {{ .Values.liveness.successThreshold }}
60 failureThreshold: {{ .Values.liveness.failureThreshold }}
64 port: {{ .Values.service.internalPort }}
65 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
66 periodSeconds: {{ .Values.readiness.periodSeconds }}
67 successThreshold: {{ .Values.readiness.successThreshold }}
68 failureThreshold: {{ .Values.readiness.failureThreshold }}
71 port: {{ .Values.service.internalPort }}
72 initialDelaySeconds: {{ .Values.startup.initialDelaySeconds }}
73 periodSeconds: {{ .Values.startup.periodSeconds }}
74 successThreshold: {{ .Values.startup.successThreshold }}
75 failureThreshold: {{ .Values.startup.failureThreshold }}
78 value: {{ .Values.env.name }}
80 value: {{ .Values.config.javaOptions }}
82 value: "{{ .Values.config.backendServerURL.http }}"
86 - name: {{ include "common.fullname" . }}-localtime
87 mountPath: /etc/localtime
89 resources: {{ include "common.resources" . | nindent 12 }}
90 {{- if .Values.nodeSelector }}
92 {{ toYaml .Values.nodeSelector | indent 10 }}
94 {{- if .Values.affinity }}
96 {{ toYaml .Values.affinity | indent 10 }}
99 {{ include "common.log.sidecar" . | nindent 8 }}
100 serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
102 - name: {{ include "common.fullname" . }}-localtime
105 {{ include "common.log.volumes" (dict "dot" . "configMapNamePrefix" (tpl .Values.logConfigMapNamePrefix . )) | nindent 8 }}
108 {{- include "common.imagePullSecrets" . | nindent 6 }}