1 # Copyright © 2018 Amdocs, AT&T
2 # Modifications Copyright © 2018 Bell Canada
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.
16 apiVersion: extensions/v1beta1
19 name: {{ include "common.fullname" . }}
20 namespace: {{ include "common.namespace" . }}
22 app: {{ include "common.name" . }}
23 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
24 release: {{ .Release.Name }}
25 heritage: {{ .Release.Service }}
27 replicas: {{ .Values.replicaCount }}
31 app: {{ include "common.name" . }}
32 release: {{ .Release.Name }}
41 - message-router-kafka
47 fieldPath: metadata.namespace
48 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
49 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
50 name: {{ include "common.name" . }}-readiness
52 - name: {{ include "common.name" . }}
53 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
54 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
56 - containerPort: {{ .Values.service.internalPort }}
57 # disable liveness probe when breakpoints set in debugger
58 # so K8s doesn't restart unresponsive container
59 {{ if .Values.liveness.enabled }}
62 port: {{ .Values.service.internalPort }}
63 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
64 periodSeconds: {{ .Values.liveness.periodSeconds }}
68 port: {{ .Values.service.internalPort }}
69 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
70 periodSeconds: {{ .Values.readiness.periodSeconds }}
73 value: "/opt/app/champ-service/appconfig"
76 - name: KEY_STORE_PASSWORD
79 name: {{ template "common.fullname" . }}-pass
80 key: KEY_STORE_PASSWORD
81 - name: KEY_MANAGER_PASSWORD
84 name: {{ template "common.fullname" . }}-pass
85 key: KEY_MANAGER_PASSWORD
87 value: "/opt/app/champ-service/dynamic/conf"
89 - mountPath: /etc/localtime
92 - mountPath: /opt/app/champ-service/appconfig/champ-api.properties
93 name: {{ include "common.fullname" . }}-config
94 subPath: champ-api.properties
95 - mountPath: /opt/app/champ-service/appconfig/auth
96 name: {{ include "common.fullname" . }}-secrets
97 - mountPath: /opt/app/champ-service/dynamic/conf/champ-beans.xml
98 name: {{ include "common.fullname" . }}-dynamic-config
99 subPath: champ-beans.xml
100 - mountPath: /opt/app/champ-service/bundleconfig/etc/logback.xml
101 name: {{ include "common.fullname" . }}-logback-config
104 name: {{ include "common.fullname" . }}-logs
106 {{ toYaml .Values.resources | indent 12 }}
107 {{- if .Values.nodeSelector }}
109 {{ toYaml .Values.nodeSelector | indent 10 }}
111 {{- if .Values.affinity }}
113 {{ toYaml .Values.affinity | indent 10 }}
120 - name: {{ include "common.fullname" . }}-config
122 name: {{ include "common.fullname" . }}
124 - key: champ-api.properties
125 path: champ-api.properties
126 - name: {{ include "common.fullname" . }}-secrets
128 secretName: {{ include "common.fullname" . }}-champ
129 - name: {{ include "common.fullname" . }}-dynamic-config
131 name: {{ include "common.fullname" . }}-dynamic
133 - key: champ-beans.xml
134 path: champ-beans.xml
135 - name: {{ include "common.fullname" . }}-logs
137 - name: {{ include "common.fullname" . }}-logback-config
139 name: {{ include "common.fullname" . }}-log-configmap
144 - name: "{{ include "common.namespace" . }}-docker-registry-key"