2 # Copyright © 2017-2020 AT&T, 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 }}
27 - name: {{ include "common.name" . }}-cassandra-readiness
28 image: "{{ include "common.repository" . }}/{{ .Values.global.readinessImage }}"
29 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
34 - "{{ include "common.release" . }}-music-cassandra-job-config"
40 fieldPath: metadata.namespace
45 - "cd /config-input && for PFILE in `ls -1 .`; do envsubst <${PFILE} >/config/${PFILE}; done"
47 - name: KEYSTORE_PASSWORD
48 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "music-keystore-pw" "key" "password") | indent 12}}
50 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "cassa-secret" "key" "login") | indent 12 }}
51 - name: CASSA_PASSWORD
52 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "cassa-secret" "key" "password") | indent 12 }}
54 - mountPath: /config-input
55 name: properties-music-scrubbed
57 name: properties-music
58 image: "{{ .Values.global.envsubstImage }}"
59 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
60 name: {{ include "common.name" . }}-update-config
63 - name: "{{ include "common.name" . }}-springboot"
64 image: "{{ .Values.repository }}/{{ .Values.image }}"
65 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
66 ports: {{ include "common.containerPorts" . | nindent 12 }}
67 # disable liveness probe when breakpoints set in debugger
68 # so K8s doesn't restart unresponsive container
69 {{ if eq .Values.liveness.enabled true }}
72 port: {{ .Values.liveness.port }}
73 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
74 periodSeconds: {{ .Values.liveness.periodSeconds }}
78 port: {{ .Values.readiness.port }}
79 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
80 periodSeconds: {{ .Values.readiness.periodSeconds }}
82 {{ include "common.resources" . | indent 12 }}
85 value: "{{ .Values.springOpts }}"
87 value: "{{ .Values.javaOpts }}"
89 value: "{{ .Values.debug }}"
92 mountPath: /etc/localtime
94 - name: properties-music
95 mountPath: /opt/app/music/etc/music.properties
96 subPath: music.properties
97 - name: properties-music
98 mountPath: /opt/app/music/etc/music-sb.properties
99 subPath: music-sb.properties
100 - name: properties-music-scrubbed
101 mountPath: /opt/app/music/etc/logback.xml
104 mountPath: /opt/app/aafcertman/
108 - name: certificate-vol
113 - name: properties-music-scrubbed
115 name: {{ include "common.fullname" . }}
116 - name: properties-music
121 secretName: {{ include "common.secret.getSecretNameFast" (dict "global" . "uid" "music-certs") }}