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" . }}
35 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
36 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
38 - name: JAVA_TRUSTSTORE
39 value: /share/etc/certs/{{ .Values.global.truststoreFile }}
41 value: /share/etc/certs/{{ .Values.global.keystoreFile }}
42 - name: JAVA_TRUSTSTORE_PASSWORD
43 value: {{ .Values.global.truststorePassword }}
44 - name: SSL_KEYSTORE_PASSWORD
45 value: {{ .Values.global.keystorePassword }}
46 - name: AUTHENTICATION
47 value: {{ .Values.global.authentication }}
49 - containerPort: {{ .Values.service.internalPort }}
50 # disable liveness probe when breakpoints set in debugger
51 # so K8s doesn't restart unresponsive container
52 {{- if eq .Values.liveness.enabled true }}
55 port: {{ .Values.service.internalPort }}
56 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
57 periodSeconds: {{ .Values.liveness.periodSeconds }}
61 port: {{ .Values.service.internalPort }}
62 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
63 periodSeconds: {{ .Values.readiness.periodSeconds }}
65 - name: {{ include "common.fullname" . }}-logs
66 mountPath: /share/logs
67 - name: {{ include "common.fullname" . }}-logs
68 mountPath: /share/debug-logs
69 - name: {{ include "common.fullname" . }}-config
70 mountPath: /share/etc/config
71 - name: {{ include "common.fullname" . }}-certs
72 mountPath: /share/etc/certs
73 - name: {{ include "common.fullname" . }}-certs
74 mountPath: /opt/app/cmso/src/main/resources/aaf
76 {{ include "common.resources" . | indent 12 }}
77 {{- if .Values.nodeSelector }}
79 {{ toYaml .Values.nodeSelector | indent 10 }}
81 {{- if .Values.affinity }}
83 {{ toYaml .Values.affinity | indent 10 }}
86 - name: {{ include "common.fullname" . }}-config
88 name: {{ include "common.fullname" . }}
92 - key: cadi.properties
94 - key: topology.properties
95 path: topology.properties
96 - name: {{ include "common.fullname" . }}-logs
98 - name: {{ include "common.fullname" . }}-certs
100 secretName: {{ include "common.release" . }}-{{ .Values.global.commonConfigPrefix }}-certs
102 - name: "{{ include "common.namespace" . }}-docker-registry-key"