8684e67f6e70e871d812ebf1e7f27cc2af6f175a
[it/dep.git] /
1 #  ============LICENSE_START===============================================
2 #  Copyright (C) 2024 OpenInfra Foundation Europe. All rights reserved.
3 #  ========================================================================
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
7 #
8 #       http://www.apache.org/licenses/LICENSE-2.0
9 #
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.
15 #  ============LICENSE_END=================================================
16 #
17
18 kind: Deployment
19 apiVersion: apps/v1
20 metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
21 spec:
22   replicas: 1
23   selector: {{- include "common.selectors" . | nindent 4 }}
24   template:
25     metadata: {{- include "common.templateMetadata" . | nindent 6 }}
26     spec:
27       hostname: {{ include "common.name" . }}
28       containers:
29       - name: {{ include "common.containername" . }}
30         image: {{ .Values.image.registry }}/{{ .Values.image.name }}:{{ .Values.image.tag }}
31         imagePullPolicy: {{ .Values.imagePullPolicy }}
32 {{- if .Values.global.useStrimziKafka }}
33         env:
34         - name: SPRING_KAFKA_SECURITY_PROPERTIES_SASL_JAAS_CONFIG
35           valueFrom:
36             secretKeyRef:
37               name: {{ include "common.name" . }}-ku
38               key: sasl.jaas.config
39 {{- end }}
40         volumeMounts:
41         - name: {{ include "common.applicationConfigMountName" . }}
42           mountPath: /opt/app/teiv/config
43       volumes: {{- include "common.applicationConfigVolume" . | nindent 8 }}