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.
21 name: {{ include "common.fullname" . }}
22 namespace: {{ include "common.namespace" . }}
24 app: {{ include "common.name" . }}
25 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
26 release: {{ include "common.release" . }}
27 heritage: {{ .Release.Service }}
31 app: {{ include "common.name" . }}
32 replicas: {{ .Values.replicaCount }}
36 app: {{ include "common.name" . }}
37 release: {{ include "common.release" . }}
46 - cds-blueprints-processor
52 fieldPath: metadata.namespace
53 image: {{ include "repositoryGenerator.image.readiness" . }}
54 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
55 name: {{ include "common.name" . }}-readiness
57 - name: {{ include "common.name" . }}
58 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
59 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
61 - name: APP_CONFIG_HOME
62 value: {{ .Values.config.appConfigDir }}
63 - name: SECURITY_PROTOCOL
64 value: {{ .Values.config.kafka.securityProtocol }}
65 - name: SASL_MECHANISM
66 value: {{ .Values.config.kafka.saslMechanism }}
67 - name: SASL_JAAS_CONFIG
68 value: {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "cds-sdc-kafka-secret" "key" "sasl.jaas.config") | indent 12 }}
70 - containerPort: {{ .Values.service.http.internalPort }}
71 name: {{ .Values.service.http.portName }}
72 {{ if .Values.liveness.enabled }}
75 path: /api/v1/sdclistener/healthcheck
76 port: {{ .Values.service.http.portName }}
77 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
78 periodSeconds: {{ .Values.liveness.periodSeconds }}
82 path: /api/v1/sdclistener/healthcheck
83 port: {{ .Values.service.http.portName }}
84 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
85 periodSeconds: {{ .Values.readiness.periodSeconds }}
87 - mountPath: {{ .Values.config.appConfigDir }}/application.yaml
88 name: {{ include "common.fullname" . }}-config
89 subPath: application.yaml
90 - mountPath: {{ .Values.config.appConfigDir }}/logback.xml
91 name: {{ include "common.fullname" . }}-config
94 {{ include "common.resources" . | indent 12 }}
95 {{- if .Values.nodeSelector }}
97 {{ toYaml .Values.nodeSelector | indent 10 }}
99 {{- if .Values.affinity }}
101 {{ toYaml .Values.affinity | indent 10 }}
103 serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
105 - name: {{ include "common.fullname" . }}-config
107 name: {{ include "common.fullname" . }}-configmap
109 - key: application.yaml
110 path: application.yaml
114 - name: {{ include "common.namespace" . }}-docker-registry-key