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 metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
21 selector: {{- include "common.selectors" . | nindent 4 }}
22 replicas: {{ .Values.replicaCount }}
24 metadata: {{- include "common.templateMetadata" . | nindent 6 }}
32 cd /config-input && for PFILE in `ls -1`
34 envsubst <${PFILE} >/config/${PFILE}
36 cat /config/server.xml
38 - mountPath: /config-input
42 image: {{ include "repositoryGenerator.image.envsubst" . }}
43 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
44 name: {{ include "common.name" . }}-update-config
46 - name: {{ include "common.name" . }}
47 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
48 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
57 /home/uui/uuiStartup.sh
58 ports: {{ include "common.containerPorts" . | nindent 10 }}
59 # disable liveness probe when breakpoints set in debugger
60 # so K8s doesn't restart unresponsive container
61 {{- if eq .Values.liveness.enabled true }}
64 port: {{ .Values.service.internalPort }}
65 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
66 periodSeconds: {{ .Values.liveness.periodSeconds }}
70 port: {{ .Values.service.internalPort }}
71 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
72 periodSeconds: {{ .Values.readiness.periodSeconds }}
74 - mountPath: /home/uui/server.xml
77 - mountPath: /home/uui/web.xml
82 value: {{ tpl .Values.msbaddr . }}
83 resources: {{ include "common.resources" . | nindent 12 }}
84 {{- if .Values.nodeSelector }}
85 nodeSelector: {{ toYaml .Values.nodeSelector | nindent 10 }}
87 {{- if .Values.affinity }}
88 affinity: {{ toYaml .Values.affinity | nindent 10 }}
93 name: {{ include "common.fullname" . }}
98 - name: "{{ include "common.namespace" . }}-docker-registry-key"