I have deployed kraft kafka on my k8s cluster using bitnami kafka chart. This is the values.yaml file
# Disable ZooKeeper
zookeeper:
enabled: false
# Kafka settings
kafka:
replicaCount: 1
heapOpts: "-Xms2G -Xmx2G"
deleteTopicEnable: false
configurationOverrides:
"auto.create.topics.enable": "false"
"offsets.topic.replication.factor": 1
"transaction.state.log.replication.factor": 1
"transaction.state.log.min.isr": 1
# Kraft configuration
kraft:
enabled: true
clusterId: "QYaAgjFeNdCdXid2yUjBBD"
defaultReplicationFactor: 1
defaultMinInSyncReplicas: 1
# Persistence settings
persistence:
enabled: true
size: 10Gi
My application is written in go and uses IBM sarama to connect to kafka. Now sometimes at night when there is no activity over kafka, sarama continuously gives
connection refused
error. I will have to then restart the application pod to connect back to kafka.