fix Kafka config mount: use subPath to avoid /etc/kafka/secrets conflict

Container fails with 'read-only file system' when K8s tries to mount
a secret into /etc/kafka/secrets alongside the ConfigMap at /etc/kafka.
Switch to subPath mount of server.properties directly.
This commit is contained in:
Hermes Agent 2026-05-25 23:53:55 +00:00
parent 8fc6bc16c3
commit 5ab0098e34

View file

@ -99,7 +99,8 @@ spec:
- ALL
volumeMounts:
- name: config
mountPath: /etc/kafka
mountPath: /etc/kafka/server.properties
subPath: server.properties
- name: data
mountPath: /var/lib/kafka/data
readinessProbe: