2 # Copyright © 2018 AT&T
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.
20 name: {{ include "common.fullname" . }}
21 namespace: {{ include "common.namespace" . }}
23 app: {{ include "common.name" . }}
24 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
25 release: {{ include "common.release" . }}
26 heritage: {{ .Release.Service }}
30 app: {{ include "common.name" . }}
31 replicas: {{ .Values.replicaCount }}
35 app: {{ include "common.name" . }}
36 release: {{ include "common.release" . }}
39 - name: {{ include "common.name" . }}-chown
40 command: ["/bin/sh", "-c", "chown -Rf 1000:1000 /share/"]
41 image: "{{ .Values.global.busyBoxRepository }}/{{ .Values.global.busyBoxImage }}"
42 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
44 - name: {{ include "common.fullname" . }}-logs
45 mountPath: /share/logs
46 {{ include "common.certInitializer.initContainer" . | indent 6 }}
48 - name: {{ include "common.name" . }}
49 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
50 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
52 - name: JAVA_TRUSTSTORE
53 value: /share/etc/osaaf/local/{{ .Values.global.truststoreFile }}
55 value: /share/etc/osaaf/local/{{ .Values.global.keystoreFile }}
56 - name: JAVA_TRUSTSTORE_PASSWORD
57 value: {{ .Values.global.truststorePassword }}
58 - name: AUTHENTICATION
59 value: proprietary-auth
65 export SSL_KEYSTORE_PASSWORD=$(cat /share/etc/osaaf/local/.pass)
68 - containerPort: {{ .Values.service.internalPort }}
69 # disable liveness probe when breakpoints set in debugger
70 # so K8s doesn't restart unresponsive container
71 {{- if eq .Values.liveness.enabled true }}
74 port: {{ .Values.service.internalPort }}
75 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
76 periodSeconds: {{ .Values.liveness.periodSeconds }}
80 port: {{ .Values.service.internalPort }}
81 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
82 periodSeconds: {{ .Values.readiness.periodSeconds }}
84 {{ include "common.certInitializer.volumeMount" . | indent 8 }}
85 - name: {{ include "common.fullname" . }}-logs
86 mountPath: /share/logs
87 - name: {{ include "common.fullname" . }}-logs
88 mountPath: /share/debug-logs
89 - name: {{ include "common.fullname" . }}-config
90 mountPath: /share/etc/config
91 - name: {{ include "common.fullname" . }}-certs
92 mountPath: /share/etc/certs
93 - name: {{ include "common.fullname" . }}-certs
94 mountPath: /opt/app/cmso/src/main/resources/aaf
96 {{ include "common.resources" . | indent 12 }}
97 {{- if .Values.nodeSelector }}
99 {{ toYaml .Values.nodeSelector | indent 10 }}
101 {{- if .Values.affinity }}
103 {{ toYaml .Values.affinity | indent 10 }}
106 {{ include "common.certInitializer.volumes" . | nindent 8 }}
107 - name: {{ include "common.fullname" . }}-config
109 name: {{ include "common.fullname" . }}
113 - key: ticketmgt.properties
114 path: ticketmgt.properties
115 - key: cadi.properties
116 path: cadi.properties
117 - name: {{ include "common.fullname" . }}-logs
119 - name: {{ include "common.fullname" . }}-certs
121 secretName: {{ include "common.release" . }}-{{ .Values.global.commonConfigPrefix }}-certs
123 - name: "{{ include "common.namespace" . }}-docker-registry-key"