1 # Copyright © 2018 AT&T
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
18 name: {{ include "common.fullname" . }}
19 namespace: {{ include "common.namespace" . }}
21 app: {{ include "common.name" . }}
22 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
23 release: {{ include "common.release" . }}
24 heritage: {{ .Release.Service }}
28 app: {{ include "common.name" . }}
29 replicas: {{ .Values.replicaCount }}
33 app: {{ include "common.name" . }}
34 release: {{ include "common.release" . }}
37 - name: {{ include "common.name" . }}-chown
38 command: ["/bin/sh", "-c", "chown -Rf 1000:1000 /share/"]
39 image: "{{ .Values.global.busyBoxRepository }}/{{ .Values.global.busyBoxImage }}"
40 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
42 - name: {{ include "common.fullname" . }}-logs
43 mountPath: /share/logs
45 - name: {{ include "common.name" . }}
46 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
47 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
49 - name: JAVA_TRUSTSTORE
50 value: /share/etc/certs/{{ .Values.global.truststoreFile }}
52 value: /share/etc/certs/{{ .Values.global.keystoreFile }}
53 - name: JAVA_TRUSTSTORE_PASSWORD
54 value: {{ .Values.global.truststorePassword }}
55 - name: SSL_KEYSTORE_PASSWORD
56 value: {{ .Values.global.keystorePassword }}
57 - name: AUTHENTICATION
58 value: proprietary-auth
60 - containerPort: {{ .Values.service.internalPort }}
61 # disable liveness probe when breakpoints set in debugger
62 # so K8s doesn't restart unresponsive container
63 {{- if eq .Values.liveness.enabled true }}
66 port: {{ .Values.service.internalPort }}
67 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
68 periodSeconds: {{ .Values.liveness.periodSeconds }}
72 port: {{ .Values.service.internalPort }}
73 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
74 periodSeconds: {{ .Values.readiness.periodSeconds }}
76 - name: {{ include "common.fullname" . }}-logs
77 mountPath: /share/logs
78 - name: {{ include "common.fullname" . }}-logs
79 mountPath: /share/debug-logs
80 - name: {{ include "common.fullname" . }}-config
81 mountPath: /share/etc/config
82 - name: {{ include "common.fullname" . }}-certs
83 mountPath: /share/etc/certs
84 - name: {{ include "common.fullname" . }}-certs
85 mountPath: /opt/app/cmso/src/main/resources/aaf
87 {{ include "common.resources" . | indent 12 }}
88 {{- if .Values.nodeSelector }}
90 {{ toYaml .Values.nodeSelector | indent 10 }}
92 {{- if .Values.affinity }}
94 {{ toYaml .Values.affinity | indent 10 }}
97 - name: {{ include "common.fullname" . }}-config
99 name: {{ include "common.fullname" . }}
103 - key: ticketmgt.properties
104 path: ticketmgt.properties
105 - key: cadi.properties
106 path: cadi.properties
107 - name: {{ include "common.fullname" . }}-logs
109 - name: {{ include "common.fullname" . }}-certs
111 secretName: {{ include "common.release" . }}-{{ .Values.global.commonConfigPrefix }}-certs
113 - name: "{{ include "common.namespace" . }}-docker-registry-key"