cp-docker-images
cp-docker-images copied to clipboard
Kafka image ensure checks KAFKA_DATA_DIRS instead of KAFKA_LOG_DIRS
Deploying the kafka image to k8s, the ENSURE incorrectly checks KAFKA_DATA_DIRS instead of KAFKA_LOG_DIRS.
I have only noticed because I am running with:
readOnlyRootFilesystem: true
and so it fails, even though I have mounted a writable volume to the path specified in KAFKA_LOG_DIRS
https://github.com/confluentinc/kafka-images/blob/master/kafka/include/etc/confluent/docker/ensure#L19
export KAFKA_DATA_DIRS=${KAFKA_DATA_DIRS:-"/var/lib/kafka/data"}
Update - I have opened a PR for this: https://github.com/confluentinc/kafka-images/pull/44
Update: OK, six weeks and not even a single comment... Shan't bother in future, PR is closed.
Actually, on this topic, if i have readOnlyRootFilesystem: true
, I can never get this check to pass?
I have tried mounting an empty dir, mounting a PVC, etc. Has anyone else found this?
Example yaml: k_yaml.txt