2 # Modifications 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 }}
26 {{ include "common.podSecurityContext" . | indent 6 | trim}}
27 initContainers: {{ include "common.readinessCheck.waitFor" . | nindent 6 }}
28 {{- if .Values.usePostgres }}
33 - "cd /config-input && for PFILE in `find . -not -type d | grep -v -F ..`; do envsubst <${PFILE} >/config/${PFILE}; done"
36 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "pg-user-creds" "key" "login") | indent 12 }}
38 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "pg-user-creds" "key" "password") | indent 12 }}
40 - mountPath: /config-input
41 name: {{ include "common.name" . }}-config-input
43 name: {{ include "common.name" . }}-config
44 name: {{ include "common.name" . }}-update-config
45 image: {{ include "repositoryGenerator.image.envsubst" . }}
46 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
51 - {{ .Values.postgres.nameOverride }}
60 fieldPath: metadata.namespace
61 name: {{ include "common.name" . }}-postgres-readiness
62 image: {{ include "repositoryGenerator.image.readiness" . }}
63 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
66 - name: {{ include "common.name" . }}
67 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
68 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
69 ports: {{ include "common.containerPorts" . | nindent 10 }}
70 {{ if eq .Values.liveness.enabled true -}}
73 port: {{ .Values.liveness.port }}
75 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
76 periodSeconds: {{ .Values.liveness.periodSeconds }}
80 port: {{ .Values.readiness.port }}
82 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
83 periodSeconds: {{ .Values.readiness.periodSeconds }}
85 - mountPath: /etc/localtime
88 - name: {{ include "common.name" . }}-config
89 mountPath: /opt/app/config/conf/
90 - mountPath: /opt/app/dmaapbc/etc/logback.xml
91 name: {{ include "common.fullname" . }}-log-conf
94 {{ include "common.resources" . }}
95 {{- if .Values.nodeSelector }}
96 nodeSelector: {{ toYaml .Values.nodeSelector | nindent 10 }}
98 {{- if .Values.affinity }}
99 affinity: {{ toYaml .Values.affinity | nindent 10 }}
101 serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
106 - name: {{ include "common.fullname" . }}-log-conf
108 name: {{ include "common.fullname" . }}-log
109 {{- if .Values.usePostgres }}
110 - name: {{ include "common.name" . }}-config-input
112 name: {{ include "common.fullname" . }}-config
113 - name: {{ include "common.name" . }}-config
117 - name: {{ include "common.name" . }}-config
119 name: {{ include "common.fullname" . }}-config
122 - name: "{{ include "common.namespace" . }}-docker-registry-key"