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 "repositoryGenerator.image.readiness" . }}
29 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
34 - "{{ include "common.release" . }}-music-cassandra-config"
40 fieldPath: metadata.namespace
41 {{ include "common.certInitializer.initContainer" . | indent 8 | trim }}
46 - "export KEYSTORE_PASSWORD=$(cat /opt/app/aafcertman/local/.pass); cd /config-input && for PFILE in `ls -1 .`; do envsubst <${PFILE} >/config/${PFILE}; done"
49 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "cassa-secret" "key" "login") | indent 12 }}
50 - name: CASSA_PASSWORD
51 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "cassa-secret" "key" "password") | indent 12 }}
52 volumeMounts: {{ include "common.certInitializer.volumeMount" . | nindent 10 }}
53 - mountPath: /config-input
54 name: properties-music-scrubbed
56 name: properties-music
57 image: {{ include "repositoryGenerator.image.envsubst" . }}
58 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
59 name: {{ include "common.name" . }}-update-config
62 - name: "{{ include "common.name" . }}-springboot"
63 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
64 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
65 ports: {{ include "common.containerPorts" . | nindent 12 }}
66 # disable liveness probe when breakpoints set in debugger
67 # so K8s doesn't restart unresponsive container
68 {{ if eq .Values.liveness.enabled true }}
71 port: {{ .Values.liveness.port }}
72 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
73 periodSeconds: {{ .Values.liveness.periodSeconds }}
77 port: {{ .Values.readiness.port }}
78 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
79 periodSeconds: {{ .Values.readiness.periodSeconds }}
81 {{ include "common.resources" . | indent 12 }}
84 value: "{{ .Values.springOpts }}"
86 value: "{{ .Values.javaOpts }}"
88 value: "{{ .Values.debug }}"
89 volumeMounts: {{ include "common.certInitializer.volumeMount" . | nindent 10 }}
91 mountPath: /etc/localtime
93 - name: properties-music
94 mountPath: /opt/app/music/etc/music.properties
95 subPath: music.properties
96 - name: properties-music
97 mountPath: /opt/app/music/etc/music-sb.properties
98 subPath: music-sb.properties
99 - name: properties-music-scrubbed
100 mountPath: /opt/app/music/etc/logback.xml
102 volumes: {{ include "common.certInitializer.volumes" . | nindent 8 }}
105 - name: certificate-vol
110 - name: properties-music-scrubbed
112 name: {{ include "common.fullname" . }}
113 - name: properties-music