2 # Copyright © 2017 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.
18 metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
20 selector: {{- include "common.selectors" . | nindent 4 }}
22 metadata: {{- include "common.templateMetadata" . | nindent 6 }}
24 {{ include "common.podSecurityContext" . | indent 6 | trim}}
25 initContainers: {{ include "common.readinessCheck.waitFor" . | nindent 6 }}
27 - name: {{ include "common.name" . }}
28 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
29 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
30 ports: {{ include "common.containerPorts" . | nindent 12 }}
31 {{- if eq .Values.liveness.enabled true }}
34 port: {{ .Values.liveness.port }}
36 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
37 periodSeconds: {{ .Values.liveness.periodSeconds }}
41 port: {{ .Values.liveness.port }}
43 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
44 periodSeconds: {{ .Values.liveness.periodSeconds }}
47 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "dmaap-dr-db-user-credentials" "key" "login") | indent 12 }}
49 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "dmaap-dr-db-user-credentials" "key" "password") | indent 12 }}
51 - mountPath: /opt/app/datartr/etc/provserver.properties
52 name: {{ include "common.fullname" . }}-config
53 subPath: provserver.properties
54 - mountPath: /opt/app/datartr/etc/logback.xml
55 name: {{ include "common.fullname" . }}-log-conf
57 resources: {{ include "common.resources" . | nindent 12 }}
58 {{- if .Values.nodeSelector }}
60 {{ toYaml .Values.nodeSelector | indent 10 }}
62 {{- if .Values.affinity }}
64 {{ toYaml .Values.affinity | indent 10 }}
66 serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
68 - name: {{ include "common.fullname" . }}-config
70 name: {{ include "common.fullname" . }}-configmap
72 - key: provserver.properties
73 path: provserver.properties
74 - name: {{ include "common.fullname" . }}-log-conf
76 name: {{ include "common.fullname" . }}-log
77 {{- include "common.imagePullSecrets" . | nindent 6 }}