Skip to content

Commit fb3c7ea

Browse files
authored
Setup Apache Kafka 3.9.1 with KRaft, no zookeeper (#4474)
* 💫 Going with Apache Kafka 3.9.1, only on KRaft - no Zookeeper... Signed-off-by: Matthias Wessendorf <[email protected]> * Change the cert names, based on Strimzi changes Signed-off-by: Matthias Wessendorf <[email protected]> --------- Signed-off-by: Matthias Wessendorf <[email protected]>
1 parent 3ebecb1 commit fb3c7ea

File tree

2 files changed

+47
-14
lines changed

2 files changed

+47
-14
lines changed

test/kafka/kafka-certificate.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ spec:
2121
dnsNames:
2222
- my-cluster-kafka-bootstrap.kafka
2323
- my-cluster-kafka-bootstrap.kafka.svc
24-
- my-cluster-kafka-0.my-cluster-kafka-brokers.kafka.svc
25-
- my-cluster-kafka-1.my-cluster-kafka-brokers.kafka.svc
26-
- my-cluster-kafka-2.my-cluster-kafka-brokers.kafka.svc
24+
- my-cluster-broker-0.my-cluster-kafka-brokers.kafka.svc
25+
- my-cluster-broker-1.my-cluster-kafka-brokers.kafka.svc
26+
- my-cluster-broker-2.my-cluster-kafka-brokers.kafka.svc
2727
issuerRef:
2828
name: knative-eventing-ca-issuer
2929
kind: ClusterIssuer

test/kafka/kafka-ephemeral.yaml

Lines changed: 44 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,53 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
apiVersion: kafka.strimzi.io/v1beta2
16+
kind: KafkaNodePool
17+
metadata:
18+
name: controller
19+
labels:
20+
strimzi.io/cluster: my-cluster
21+
spec:
22+
replicas: 3
23+
roles:
24+
- controller
25+
storage:
26+
type: jbod
27+
volumes:
28+
- id: 0
29+
type: ephemeral
30+
kraftMetadata: shared
31+
---
32+
33+
apiVersion: kafka.strimzi.io/v1beta2
34+
kind: KafkaNodePool
35+
metadata:
36+
name: broker
37+
labels:
38+
strimzi.io/cluster: my-cluster
39+
spec:
40+
replicas: 3
41+
roles:
42+
- broker
43+
storage:
44+
type: jbod
45+
volumes:
46+
- id: 0
47+
type: ephemeral
48+
kraftMetadata: shared
49+
---
50+
1551
apiVersion: kafka.strimzi.io/v1beta2
1652
kind: Kafka
1753
metadata:
1854
name: my-cluster
55+
annotations:
56+
strimzi.io/node-pools: enabled
57+
strimzi.io/kraft: enabled
1958
spec:
2059
kafka:
21-
version: 3.9.0
22-
replicas: 3
60+
version: 3.9.1
61+
metadataVersion: 3.9-IV0
2362
listeners:
2463
# PLAINTEXT
2564
- name: plain
@@ -77,13 +116,7 @@ spec:
77116
transaction.state.log.replication.factor: 3
78117
transaction.state.log.min.isr: 2
79118
auto.create.topics.enable: false
80-
inter.broker.protocol.version: "3.9"
81-
storage:
82-
type: ephemeral
83-
zookeeper:
84-
replicas: 3
85-
storage:
86-
type: ephemeral
119+
default.replication.factor: 3
87120
entityOperator:
88-
topicOperator: { }
89-
userOperator: { }
121+
topicOperator: {}
122+
userOperator: {}

0 commit comments

Comments
 (0)