blob: c7dc2aff08decfcc72bf5f2bf07a1ce7efc90247 [file] [log] [blame]
efiacor5c573312022-01-27 13:46:56 +00001{{/*
2# Copyright © 2022 Nordix Foundation
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*/}}
16apiVersion: kafka.strimzi.io/v1beta2
17kind: Kafka
18metadata:
19 name: {{ include "common.fullname" . }}
20 namespace: {{ include "common.namespace" . }}
21 labels:
22 app: {{ include "common.name" . }}
23 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
24 release: {{ include "common.release" . }}
25 heritage: {{ .Release.Service }}
26spec:
27 kafka:
28 version: {{ .Values.version }}
29 replicas: {{ .Values.replicaCount }}
30 listeners:
31 - name: plain
32 port: {{ .Values.kafkaInternalPort }}
33 type: internal
34 tls: false
35 authentication:
36 type: {{ .Values.saslMechanism }}
37 - name: tls
38 port: 9093
39 type: internal
40 tls: true
41 authentication:
42 type: tls
43 - name: external
44 port: 9094
45 type: nodeport
46 tls: true
47 authentication:
48 type: tls
efiacoraf68a7e2022-04-08 10:59:52 +010049 configuration:
50 bootstrap:
Andreas Geissler8cd7e262022-09-13 13:24:50 +020051 nodePort: {{ .Values.global.nodePortPrefixExt }}93
efiacoraf68a7e2022-04-08 10:59:52 +010052 brokers:
53 - broker: 0
Andreas Geissler8cd7e262022-09-13 13:24:50 +020054 nodePort: {{ .Values.global.nodePortPrefixExt }}90
efiacoraf68a7e2022-04-08 10:59:52 +010055 - broker: 1
Andreas Geissler8cd7e262022-09-13 13:24:50 +020056 nodePort: {{ .Values.global.nodePortPrefixExt }}91
57 - broker: 2
58 nodePort: {{ .Values.global.nodePortPrefixExt }}92
efiacor5c573312022-01-27 13:46:56 +000059 authorization:
60 type: simple
61 superUsers:
efiacore44d6082022-04-26 11:57:24 +010062 - {{ .Values.kafkaStrimziAdminUser }}
efiacor5c573312022-01-27 13:46:56 +000063 template:
64 pod:
65 securityContext:
66 runAsUser: 0
67 fsGroup: 0
68 config:
efiacor23361a32022-03-14 13:44:02 +000069 default.replication.factor: {{ .Values.replicaCount }}
70 min.insync.replicas: {{ .Values.replicaCount }}
efiacor5c573312022-01-27 13:46:56 +000071 offsets.topic.replication.factor: {{ .Values.replicaCount }}
72 transaction.state.log.replication.factor: {{ .Values.replicaCount }}
efiacor23361a32022-03-14 13:44:02 +000073 transaction.state.log.min.isr: {{ .Values.replicaCount }}
efiacorf78db402022-11-18 09:15:43 +000074 log.message.format.version: {{ .Values.version }}
75 inter.broker.protocol.version: {{ .Values.version }}
efiacor5c573312022-01-27 13:46:56 +000076 storage:
77 type: jbod
efiacor5c573312022-01-27 13:46:56 +000078 volumes:
79 - id: 0
80 type: persistent-claim
81 size: {{ .Values.persistenceKafka.size }}
efiacorb7a43e22022-04-01 17:41:48 +010082 deleteClaim: true
efiacor5c573312022-01-27 13:46:56 +000083 class: {{ include "common.storageClass" (dict "dot" . "suffix" "kafka" "persistenceInfos" .Values.persistenceKafka) }}
84 zookeeper:
85 template:
86 pod:
87 securityContext:
88 runAsUser: 0
89 fsGroup: 0
90 replicas: {{ .Values.replicaCount }}
91 config:
92 ssl.hostnameVerification: false
efiacor1cfa2fb2022-06-01 16:02:39 +010093 ssl.quorum.hostnameVerification: false
Andreas Geissler485f6672022-04-06 13:12:48 +020094 {{- if (include "common.onServiceMesh" .) }}
95 sslQuorum: false
96 {{- end }}
efiacor5c573312022-01-27 13:46:56 +000097 storage:
98 type: persistent-claim
99 size: {{ .Values.persistenceZk.size }}
efiacorb7a43e22022-04-01 17:41:48 +0100100 deleteClaim: true
efiacor5c573312022-01-27 13:46:56 +0000101 class: {{ include "common.storageClass" (dict "dot" . "suffix" "zk" "persistenceInfos" .Values.persistenceZk) }}
102 entityOperator:
103 topicOperator: {}
104 userOperator: {}
105