2 # Copyright (c) 2019 Bell Canada
3 # Modification Copyright © 2022 Nordix Foundation
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # 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" . }}
45 - cds-blueprints-processor
51 fieldPath: metadata.namespace
52 image: {{ include "repositoryGenerator.image.readiness" . }}
53 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
54 name: {{ include "common.name" . }}-readiness
56 - name: {{ include "common.name" . }}
57 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
58 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
60 - name: APP_CONFIG_HOME
61 value: {{ .Values.config.appConfigDir }}
62 - name: SASL_JAAS_CONFIG
65 name: {{ include "common.name" . }}-ku
68 - containerPort: {{ .Values.service.http.internalPort }}
69 name: {{ .Values.service.http.portName }}
70 {{ if .Values.liveness.enabled }}
73 path: /api/v1/sdclistener/healthcheck
74 port: {{ .Values.service.http.portName }}
75 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
76 periodSeconds: {{ .Values.liveness.periodSeconds }}
80 path: /api/v1/sdclistener/healthcheck
81 port: {{ .Values.service.http.portName }}
82 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
83 periodSeconds: {{ .Values.readiness.periodSeconds }}
85 - mountPath: {{ .Values.config.appConfigDir }}/application.yaml
86 name: {{ include "common.fullname" . }}-config
87 subPath: application.yaml
88 - mountPath: {{ .Values.config.appConfigDir }}/logback.xml
89 name: {{ include "common.fullname" . }}-config
92 {{ include "common.resources" . | indent 12 }}
93 {{- if .Values.nodeSelector }}
95 {{ toYaml .Values.nodeSelector | indent 10 }}
97 {{- if .Values.affinity }}
99 {{ toYaml .Values.affinity | indent 10 }}
101 serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
103 - name: {{ include "common.fullname" . }}-config
105 name: {{ include "common.fullname" . }}-configmap
107 - key: application.yaml
108 path: application.yaml
112 - name: {{ include "common.namespace" . }}-docker-registry-key