first commit
This commit is contained in:
+60
@@ -0,0 +1,60 @@
|
||||
---
|
||||
# KRaft mode: single pod acting as both controller and broker.
|
||||
# Storage is defined here (not in the Kafka CR) because node pools are enabled.
|
||||
apiVersion: kafka.strimzi.io/v1
|
||||
kind: KafkaNodePool
|
||||
metadata:
|
||||
name: dual-role
|
||||
namespace: kafka
|
||||
labels:
|
||||
strimzi.io/cluster: kafka
|
||||
spec:
|
||||
replicas: 1
|
||||
roles:
|
||||
- controller
|
||||
- broker
|
||||
storage:
|
||||
type: persistent-claim
|
||||
size: 10Gi
|
||||
deleteClaim: true
|
||||
class: local-path
|
||||
resources:
|
||||
requests:
|
||||
memory: 1Gi
|
||||
cpu: "250m"
|
||||
limits:
|
||||
memory: 2Gi
|
||||
cpu: "1000m"
|
||||
---
|
||||
apiVersion: kafka.strimzi.io/v1
|
||||
kind: Kafka
|
||||
metadata:
|
||||
name: kafka
|
||||
namespace: kafka
|
||||
annotations:
|
||||
strimzi.io/node-pools: enabled
|
||||
strimzi.io/kraft: enabled
|
||||
spec:
|
||||
kafka:
|
||||
version: 4.1.0
|
||||
metadataVersion: "4.1-IV0"
|
||||
listeners:
|
||||
- name: tls
|
||||
port: 9093
|
||||
type: internal
|
||||
tls: true
|
||||
authentication:
|
||||
type: scram-sha-512
|
||||
authorization:
|
||||
type: simple
|
||||
superUsers:
|
||||
- kafka-admin
|
||||
config:
|
||||
offsets.topic.replication.factor: "1"
|
||||
transaction.state.log.replication.factor: "1"
|
||||
transaction.state.log.min.isr: "1"
|
||||
default.replication.factor: "1"
|
||||
min.insync.replicas: "1"
|
||||
entityOperator:
|
||||
topicOperator: {}
|
||||
userOperator: {}
|
||||
Reference in New Issue
Block a user