Merge pull request #165 from sirius0xdev/fix/kafka-mount-path

fix Kafka config mount: use /opt/kafka/config/ path instead of /etc/k…
This commit is contained in:
sirius0xdev 2026-05-25 20:17:14 -04:00 committed by GitHub
commit 572f9f2c0f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -82,8 +82,8 @@ spec:
- -c
- |
export KAFKA_CLUSTER_ID="$(/opt/kafka/bin/kafka-storage.sh random-uuid)"
/opt/kafka/bin/kafka-storage.sh format -t $KAFKA_CLUSTER_ID -c /etc/kafka/server.properties --ignore-formatted
exec /opt/kafka/bin/kafka-server-start.sh /etc/kafka/server.properties
/opt/kafka/bin/kafka-storage.sh format -t $KAFKA_CLUSTER_ID -c /opt/kafka/config/server.properties --ignore-formatted
exec /opt/kafka/bin/kafka-server-start.sh /opt/kafka/config/server.properties
resources:
requests:
cpu: 250m
@ -99,7 +99,7 @@ spec:
- ALL
volumeMounts:
- name: config
mountPath: /etc/kafka/server.properties
mountPath: /opt/kafka/config/server.properties
subPath: server.properties
- name: data
mountPath: /var/lib/kafka/data