efiacor | 5c57331 | 2022-01-27 13:46:56 +0000 | [diff] [blame] | 1 | {{/* |
| 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 | */}} |
| 16 | apiVersion: kafka.strimzi.io/v1beta2 |
| 17 | kind: Kafka |
efiacor | 57901a9 | 2022-11-14 16:17:15 +0000 | [diff] [blame] | 18 | metadata: {{- include "common.resourceMetadata" . | nindent 2 }} |
efiacor | 5c57331 | 2022-01-27 13:46:56 +0000 | [diff] [blame] | 19 | spec: |
| 20 | kafka: |
efiacor | 57901a9 | 2022-11-14 16:17:15 +0000 | [diff] [blame] | 21 | version: {{ .Values.config.kafkaVersion }} |
efiacor | 5c57331 | 2022-01-27 13:46:56 +0000 | [diff] [blame] | 22 | replicas: {{ .Values.replicaCount }} |
| 23 | listeners: |
| 24 | - name: plain |
efiacor | 57901a9 | 2022-11-14 16:17:15 +0000 | [diff] [blame] | 25 | port: {{ .Values.config.kafkaInternalPort }} |
efiacor | 5c57331 | 2022-01-27 13:46:56 +0000 | [diff] [blame] | 26 | type: internal |
| 27 | tls: false |
| 28 | authentication: |
efiacor | 57901a9 | 2022-11-14 16:17:15 +0000 | [diff] [blame] | 29 | type: {{ .Values.config.saslMechanism }} |
efiacor | 5c57331 | 2022-01-27 13:46:56 +0000 | [diff] [blame] | 30 | - name: tls |
| 31 | port: 9093 |
| 32 | type: internal |
| 33 | tls: true |
| 34 | authentication: |
| 35 | type: tls |
| 36 | - name: external |
| 37 | port: 9094 |
| 38 | type: nodeport |
| 39 | tls: true |
| 40 | authentication: |
| 41 | type: tls |
efiacor | af68a7e | 2022-04-08 10:59:52 +0100 | [diff] [blame] | 42 | configuration: |
| 43 | bootstrap: |
Andreas Geissler | 8cd7e26 | 2022-09-13 13:24:50 +0200 | [diff] [blame] | 44 | nodePort: {{ .Values.global.nodePortPrefixExt }}93 |
efiacor | af68a7e | 2022-04-08 10:59:52 +0100 | [diff] [blame] | 45 | brokers: |
| 46 | - broker: 0 |
Andreas Geissler | 8cd7e26 | 2022-09-13 13:24:50 +0200 | [diff] [blame] | 47 | nodePort: {{ .Values.global.nodePortPrefixExt }}90 |
efiacor | af68a7e | 2022-04-08 10:59:52 +0100 | [diff] [blame] | 48 | - broker: 1 |
Andreas Geissler | 8cd7e26 | 2022-09-13 13:24:50 +0200 | [diff] [blame] | 49 | nodePort: {{ .Values.global.nodePortPrefixExt }}91 |
| 50 | - broker: 2 |
| 51 | nodePort: {{ .Values.global.nodePortPrefixExt }}92 |
efiacor | 5c57331 | 2022-01-27 13:46:56 +0000 | [diff] [blame] | 52 | authorization: |
efiacor | 57901a9 | 2022-11-14 16:17:15 +0000 | [diff] [blame] | 53 | type: {{ .Values.config.authType }} |
efiacor | 5c57331 | 2022-01-27 13:46:56 +0000 | [diff] [blame] | 54 | superUsers: |
efiacor | 57901a9 | 2022-11-14 16:17:15 +0000 | [diff] [blame] | 55 | - {{ .Values.config.strimziKafkaAdminUser }} |
efiacor | 5c57331 | 2022-01-27 13:46:56 +0000 | [diff] [blame] | 56 | template: |
| 57 | pod: |
| 58 | securityContext: |
| 59 | runAsUser: 0 |
| 60 | fsGroup: 0 |
| 61 | config: |
efiacor | 23361a3 | 2022-03-14 13:44:02 +0000 | [diff] [blame] | 62 | default.replication.factor: {{ .Values.replicaCount }} |
efiacor | 57901a9 | 2022-11-14 16:17:15 +0000 | [diff] [blame] | 63 | min.insync.replicas: {{ (eq 1.0 (.Values.replicaCount)) | ternary 1 (sub .Values.replicaCount 1) }} |
efiacor | 5c57331 | 2022-01-27 13:46:56 +0000 | [diff] [blame] | 64 | offsets.topic.replication.factor: {{ .Values.replicaCount }} |
efiacor | 57901a9 | 2022-11-14 16:17:15 +0000 | [diff] [blame] | 65 | num.partitions: {{ mul .Values.replicaCount 2 }} |
efiacor | 5c57331 | 2022-01-27 13:46:56 +0000 | [diff] [blame] | 66 | transaction.state.log.replication.factor: {{ .Values.replicaCount }} |
efiacor | 57901a9 | 2022-11-14 16:17:15 +0000 | [diff] [blame] | 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 }} |
efiacor | 5c57331 | 2022-01-27 13:46:56 +0000 | [diff] [blame] | 70 | storage: |
| 71 | type: jbod |
efiacor | 5c57331 | 2022-01-27 13:46:56 +0000 | [diff] [blame] | 72 | volumes: |
| 73 | - id: 0 |
| 74 | type: persistent-claim |
efiacor | 57901a9 | 2022-11-14 16:17:15 +0000 | [diff] [blame] | 75 | size: {{ .Values.persistence.kafka.size }} |
efiacor | b7a43e2 | 2022-04-01 17:41:48 +0100 | [diff] [blame] | 76 | deleteClaim: true |
efiacor | 57901a9 | 2022-11-14 16:17:15 +0000 | [diff] [blame] | 77 | class: {{ include "common.storageClass" (dict "dot" . "suffix" "kafka" "persistenceInfos" .Values.persistence.kafka) }} |
efiacor | 5c57331 | 2022-01-27 13:46:56 +0000 | [diff] [blame] | 78 | zookeeper: |
| 79 | template: |
| 80 | pod: |
| 81 | securityContext: |
| 82 | runAsUser: 0 |
| 83 | fsGroup: 0 |
| 84 | replicas: {{ .Values.replicaCount }} |
| 85 | config: |
| 86 | ssl.hostnameVerification: false |
efiacor | 1cfa2fb | 2022-06-01 16:02:39 +0100 | [diff] [blame] | 87 | ssl.quorum.hostnameVerification: false |
Andreas Geissler | 485f667 | 2022-04-06 13:12:48 +0200 | [diff] [blame] | 88 | {{- if (include "common.onServiceMesh" .) }} |
| 89 | sslQuorum: false |
| 90 | {{- end }} |
efiacor | 5c57331 | 2022-01-27 13:46:56 +0000 | [diff] [blame] | 91 | storage: |
| 92 | type: persistent-claim |
efiacor | 57901a9 | 2022-11-14 16:17:15 +0000 | [diff] [blame] | 93 | size: {{ .Values.persistence.zookeeper.size }} |
efiacor | b7a43e2 | 2022-04-01 17:41:48 +0100 | [diff] [blame] | 94 | deleteClaim: true |
efiacor | 57901a9 | 2022-11-14 16:17:15 +0000 | [diff] [blame] | 95 | class: {{ include "common.storageClass" (dict "dot" . "suffix" "zk" "persistenceInfos" .Values.persistence.zookeeper) }} |
efiacor | 5c57331 | 2022-01-27 13:46:56 +0000 | [diff] [blame] | 96 | entityOperator: |
| 97 | topicOperator: {} |
| 98 | userOperator: {} |
| 99 | |