2 # Copyright © 2022 Nordix Foundation
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: kafka.strimzi.io/v1beta2
18 metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
21 version: {{ .Values.config.kafkaVersion }}
22 replicas: {{ .Values.replicaCount }}
25 port: {{ .Values.config.kafkaInternalPort }}
29 type: {{ .Values.config.saslMechanism }}
44 nodePort: {{ .Values.global.nodePortPrefixExt }}93
47 nodePort: {{ .Values.global.nodePortPrefixExt }}90
49 nodePort: {{ .Values.global.nodePortPrefixExt }}91
51 nodePort: {{ .Values.global.nodePortPrefixExt }}92
53 type: {{ .Values.config.authType }}
55 - {{ .Values.config.strimziKafkaAdminUser }}
62 default.replication.factor: {{ .Values.replicaCount }}
63 min.insync.replicas: {{ (eq 1.0 (.Values.replicaCount)) | ternary 1 (sub .Values.replicaCount 1) }}
64 offsets.topic.replication.factor: {{ .Values.replicaCount }}
65 num.partitions: {{ mul .Values.replicaCount 2 }}
66 transaction.state.log.replication.factor: {{ .Values.replicaCount }}
67 transaction.state.log.min.isr: {{ (eq 1.0 (.Values.replicaCount)) | ternary 1 (sub .Values.replicaCount 1) }}
68 log.message.format.version: {{ .Values.config.kafkaVersion }}
69 inter.broker.protocol.version: {{ .Values.config.kafkaVersion }}
74 type: persistent-claim
75 size: {{ .Values.persistence.kafka.size }}
77 class: {{ include "common.storageClass" (dict "dot" . "suffix" "kafka" "persistenceInfos" .Values.persistence.kafka) }}
84 replicas: {{ .Values.replicaCount }}
86 ssl.hostnameVerification: false
87 ssl.quorum.hostnameVerification: false
88 {{- if (include "common.onServiceMesh" .) }}
92 type: persistent-claim
93 size: {{ .Values.persistence.zookeeper.size }}
95 class: {{ include "common.storageClass" (dict "dot" . "suffix" "zk" "persistenceInfos" .Values.persistence.zookeeper) }}