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.namespace" . }}-docker-registry-key"
29 - name: {{ include "common.name" . }}-cassandra-readiness
30 image: {{ include "repositoryGenerator.image.readiness" . }}
31 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
36 - "{{ include "common.release" . }}-music-cassandra-config"
42 fieldPath: metadata.namespace
43 {{ include "common.certInitializer.initContainer" . | indent 8 | trim }}
48 - "export KEYSTORE_PASSWORD=$(cat /opt/app/aafcertman/local/.pass); cd /config-input && for PFILE in `ls -1 .`; do envsubst <${PFILE} >/config/${PFILE}; done"
51 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "cassa-secret" "key" "login") | indent 12 }}
52 - name: CASSA_PASSWORD
53 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "cassa-secret" "key" "password") | indent 12 }}
54 volumeMounts: {{ include "common.certInitializer.volumeMount" . | nindent 10 }}
55 - mountPath: /config-input
56 name: properties-music-scrubbed
58 name: properties-music
59 image: {{ include "repositoryGenerator.image.envsubst" . }}
60 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
61 name: {{ include "common.name" . }}-update-config
64 - name: "{{ include "common.name" . }}-springboot"
65 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
66 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
67 ports: {{ include "common.containerPorts" . | nindent 12 }}
68 # disable liveness probe when breakpoints set in debugger
69 # so K8s doesn't restart unresponsive container
70 {{ if eq .Values.liveness.enabled true }}
73 port: {{ .Values.liveness.port }}
74 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
75 periodSeconds: {{ .Values.liveness.periodSeconds }}
79 port: {{ .Values.readiness.port }}
80 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
81 periodSeconds: {{ .Values.readiness.periodSeconds }}
82 resources: {{ include "common.resources" . | nindent 12 }}
85 value: "{{ .Values.springOpts }}"
87 value: "{{ .Values.javaOpts }}"
89 value: "{{ .Values.debug }}"
90 volumeMounts: {{ include "common.certInitializer.volumeMount" . | nindent 10 }}
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
103 volumes: {{ include "common.certInitializer.volumes" . | nindent 8 }}
106 - name: certificate-vol
111 - name: properties-music-scrubbed
113 name: {{ include "common.fullname" . }}
114 - name: properties-music