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 }}
26 initContainers: {{ include "common.certInitializer.initContainer" . | nindent 6 }}
32 export $(cat {{ .Values.certInitializer.credsPath }}/mycreds.prop | xargs -0)
33 cd /config-input && for PFILE in `ls -1`
35 envsubst <${PFILE} >/config/${PFILE}
37 cat /config/server.xml
38 volumeMounts: {{ include "common.certInitializer.volumeMount" . | nindent 8 }}
39 - mountPath: /config-input
43 image: {{ include "repositoryGenerator.image.envsubst" . }}
44 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
45 name: {{ include "common.name" . }}-update-config
47 - name: {{ include "common.name" . }}
48 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
49 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
58 echo "*** /opt/app/osaaf/"
59 ls -lh /opt/app/osaaf/
60 echo "*** /opt/app/osaaf/local"
61 ls -lh /opt/app/osaaf/local/
62 /home/uui/uuiStartup.sh
63 ports: {{ include "common.containerPorts" . | nindent 10 }}
64 # disable liveness probe when breakpoints set in debugger
65 # so K8s doesn't restart unresponsive container
66 {{- if eq .Values.liveness.enabled true }}
69 port: {{ .Values.service.internalPort }}
70 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
71 periodSeconds: {{ .Values.liveness.periodSeconds }}
75 port: {{ .Values.service.internalPort }}
76 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
77 periodSeconds: {{ .Values.readiness.periodSeconds }}
78 volumeMounts: {{ include "common.certInitializer.volumeMount" . | nindent 10 }}
79 - mountPath: /home/uui/server.xml
82 {{ if not (include "common.needTLS" .) }}
83 - mountPath: /home/uui/web.xml
89 value: {{ tpl .Values.msbaddr . }}
90 resources: {{ include "common.resources" . | nindent 12 }}
91 {{- if .Values.nodeSelector }}
92 nodeSelector: {{ toYaml .Values.nodeSelector | nindent 10 }}
94 {{- if .Values.affinity }}
95 affinity: {{ toYaml .Values.affinity | nindent 10 }}
97 volumes: {{ include "common.certInitializer.volumes" . | nindent 6 }}
100 name: {{ include "common.fullname" . }}
105 - name: "{{ include "common.namespace" . }}-docker-registry-key"