cp-docker-images icon indicating copy to clipboard operation
cp-docker-images copied to clipboard

Kafka image ensure checks KAFKA_DATA_DIRS instead of KAFKA_LOG_DIRS

Open PaulieMac opened this issue 4 years ago • 1 comments

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.

PaulieMac avatar Jul 08 '20 14:07 PaulieMac

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

PaulieMac avatar Jul 08 '20 15:07 PaulieMac