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.
19 name: {{ include "common.fullname" . }}
20 namespace: {{ include "common.namespace" . }}
22 app: {{ include "common.name" . }}
23 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
24 release: {{ include "common.release" . }}
25 heritage: {{ .Release.Service }}
29 app: {{ include "common.name" . }}
30 replicas: {{ .Values.replicaCount }}
34 app: {{ include "common.name" . }}
35 release: {{ include "common.release" . }}
37 {{ include "common.podSecurityContext" . | indent 6 | trim}}
38 hostname: {{ .Values.global.dmaapDrProvName }}
40 - name: {{ include "common.name" . }}-readiness
44 image: {{ include "repositoryGenerator.image.readiness" . }}
45 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
50 - {{ include "common.release" . }}-dmaap-dr-mariadb-init-config-job
56 fieldPath: metadata.namespace
57 {{- if .Values.global.aafEnabled }}
59 {{ include "common.certInitializer.initContainer" . | nindent 8 }}
61 - name: {{ include "common.name" . }}-permission-fixer
64 image: {{ include "repositoryGenerator.image.busybox" . }}
65 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
66 volumeMounts: {{ include "common.certInitializer.volumeMount" . | nindent 10 }}
67 command: ["chown","-Rf","1000:1001", "/opt/app/"]
71 - name: {{ include "common.name" . }}
72 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
73 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
75 - containerPort: {{ .Values.config.dmaapDrProv.internalPort }}
76 {{- if eq .Values.liveness.enabled true }}
79 port: {{ .Values.config.dmaapDrProv.internalPort }}
80 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
81 periodSeconds: {{ .Values.liveness.periodSeconds }}
85 port: {{ .Values.config.dmaapDrProv.internalPort }}
86 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
87 periodSeconds: {{ .Values.readiness.periodSeconds }}
90 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "dmaap-dr-db-user-credentials" "key" "login") | indent 12 }}
92 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "dmaap-dr-db-user-credentials" "key" "password") | indent 12 }}
93 volumeMounts: {{ include "common.certInitializer.volumeMount" . | nindent 10 }}
94 - mountPath: /etc/localtime
97 - mountPath: /opt/app/datartr/etc/provserver.properties
98 name: {{ include "common.fullname" . }}-config
99 subPath: provserver.properties
100 - mountPath: /opt/app/datartr/etc/logback.xml
101 name: {{ include "common.fullname" . }}-log-conf
103 - mountPath: {{ .Values.global.loggingDirectory }}
104 name: {{ include "common.fullname" . }}-logs
106 {{ include "common.resources" . }}
107 {{- if .Values.nodeSelector }}
109 {{ toYaml .Values.nodeSelector | indent 10 }}
111 {{- if .Values.affinity }}
113 {{ toYaml .Values.affinity | indent 10 }}
115 # Filebeat sidecar container
116 {{ include "common.log.sidecar" . | nindent 8 }}
117 serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
118 volumes: {{ include "common.certInitializer.volumes" . | nindent 6 }}
122 - name: {{ include "common.fullname" . }}-config
124 name: {{ include "common.fullname" . }}-configmap
126 - key: provserver.properties
127 path: provserver.properties
128 - name: {{ include "common.fullname" . }}-log-conf
130 name: {{ include "common.fullname" . }}-log
131 {{ include "common.log.volumes" . | nindent 6 }}
132 - name: {{ include "common.fullname" . }}-logs
135 - name: "{{ include "common.namespace" . }}-docker-registry-key"