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.
15 apiVersion: extensions/v1beta1
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 }}
26 replicas: {{ .Values.replicaCount }}
30 app: {{ include "common.name" . }}
31 release: {{ include "common.release" . }}
34 - name: {{ include "common.name" . }}-chown
35 command: ["/bin/sh", "-c", "chown -Rf 1000:1000 /share/"]
36 image: "{{ .Values.global.busyBoxRepository }}/{{ .Values.global.busyBoxImage }}"
37 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
39 - name: {{ include "common.fullname" . }}-logs
40 mountPath: /share/logs
42 - name: {{ include "common.name" . }}
43 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
44 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
46 - name: JAVA_TRUSTSTORE
47 value: /share/etc/certs/{{ .Values.global.truststoreFile }}
49 value: /share/etc/certs/{{ .Values.global.keystoreFile }}
50 - name: JAVA_TRUSTSTORE_PASSWORD
51 value: {{ .Values.global.truststorePassword }}
52 - name: SSL_KEYSTORE_PASSWORD
53 value: {{ .Values.global.keystorePassword }}
54 - name: AUTHENTICATION
55 value: proprietary-auth
57 - containerPort: {{ .Values.service.internalPort }}
58 # disable liveness probe when breakpoints set in debugger
59 # so K8s doesn't restart unresponsive container
60 {{- if eq .Values.liveness.enabled true }}
63 port: {{ .Values.service.internalPort }}
64 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
65 periodSeconds: {{ .Values.liveness.periodSeconds }}
69 port: {{ .Values.service.internalPort }}
70 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
71 periodSeconds: {{ .Values.readiness.periodSeconds }}
73 - name: {{ include "common.fullname" . }}-logs
74 mountPath: /share/logs
75 - name: {{ include "common.fullname" . }}-logs
76 mountPath: /share/debug-logs
77 - name: {{ include "common.fullname" . }}-config
78 mountPath: /share/etc/config
79 - name: {{ include "common.fullname" . }}-certs
80 mountPath: /share/etc/certs
81 - name: {{ include "common.fullname" . }}-certs
82 mountPath: /opt/app/cmso/src/main/resources/aaf
84 {{ include "common.resources" . | indent 12 }}
85 {{- if .Values.nodeSelector }}
87 {{ toYaml .Values.nodeSelector | indent 10 }}
89 {{- if .Values.affinity }}
91 {{ toYaml .Values.affinity | indent 10 }}
94 - name: {{ include "common.fullname" . }}-config
96 name: {{ include "common.fullname" . }}
100 - key: ticketmgt.properties
101 path: ticketmgt.properties
102 - key: cadi.properties
103 path: cadi.properties
104 - name: {{ include "common.fullname" . }}-logs
106 - name: {{ include "common.fullname" . }}-certs
108 secretName: {{ include "common.release" . }}-{{ .Values.global.commonConfigPrefix }}-certs
110 - name: "{{ include "common.namespace" . }}-docker-registry-key"