From 68033faf4e0279b43bfb2e899bf95c1e36ac030f Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Tue, 26 May 2026 00:16:42 +0000 Subject: [PATCH] fix Kafka config mount: use /opt/kafka/config/ path instead of /etc/kafka /etc/kafka doesn't exist in the apache/kafka image - subPath could not create the parent directory. Switch to /opt/kafka/config/ which exists in the image, avoiding both the directory conflict and the missing path. --- apps/base/customer1/siriusdevops-db/kafka-broker.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/base/customer1/siriusdevops-db/kafka-broker.yaml b/apps/base/customer1/siriusdevops-db/kafka-broker.yaml index 09cd58e..8dd9a2e 100644 --- a/apps/base/customer1/siriusdevops-db/kafka-broker.yaml +++ b/apps/base/customer1/siriusdevops-db/kafka-broker.yaml @@ -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