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: {{ include "repositoryGenerator.image.busybox" . }}
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 "repositoryGenerator.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
61 value: "-Dcom.att.eelf.logging.file=logback.xml -Dcom.att.eelf.logging.path=/share/etc/config"
67 export SSL_KEYSTORE_PASSWORD=$(cat /share/etc/osaaf/local/.pass)
70 - containerPort: {{ .Values.service.internalPort }}
71 # disable liveness probe when breakpoints set in debugger
72 # so K8s doesn't restart unresponsive container
73 {{- if eq .Values.liveness.enabled true }}
76 port: {{ .Values.service.internalPort }}
77 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
78 periodSeconds: {{ .Values.liveness.periodSeconds }}
82 port: {{ .Values.service.internalPort }}
83 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
84 periodSeconds: {{ .Values.readiness.periodSeconds }}
86 {{ include "common.certInitializer.volumeMount" . | indent 8 }}
87 - name: {{ include "common.fullname" . }}-logs
88 mountPath: /share/logs
89 - name: {{ include "common.fullname" . }}-logs
90 mountPath: /share/debug-logs
91 - name: {{ include "common.fullname" . }}-config
92 mountPath: /share/etc/config
93 - name: {{ include "common.fullname" . }}-certs
94 mountPath: /share/etc/certs
95 - name: {{ include "common.fullname" . }}-certs
96 mountPath: /opt/app/cmso/src/main/resources/aaf
98 {{ include "common.resources" . | indent 12 }}
99 {{- if .Values.nodeSelector }}
101 {{ toYaml .Values.nodeSelector | indent 10 }}
103 {{- if .Values.affinity }}
105 {{ toYaml .Values.affinity | indent 10 }}
108 {{ include "common.certInitializer.volumes" . | nindent 8 }}
109 - name: {{ include "common.fullname" . }}-config
111 name: {{ include "common.fullname" . }}
115 - key: ticketmgt.properties
116 path: ticketmgt.properties
117 - key: cadi.properties
118 path: cadi.properties
119 - name: {{ include "common.fullname" . }}-logs
121 - name: {{ include "common.fullname" . }}-certs
123 secretName: {{ include "common.release" . }}-{{ .Values.global.commonConfigPrefix }}-certs
125 - name: "{{ include "common.namespace" . }}-docker-registry-key"