Hello.

I use confluent zookeeper and confluent kafka brokers in gcloud k8s environment.
I have deployed zookeeper as a statefulset in cluster with persistent disk 
mounted on /var/lib/zookeeper
dataDir and dataLogdir are /var/lib/zookeeper/data and /var/lib/zookeeper/log

I create some topics.

I want to ensure, that configuration in zookeeper will persist when I restart 
zookeeper pod.

But when pod is restarted – there is just fresh log.1 under folder 
/var/lib/zookeeper/log/version-2/
Without created topics.

Same situation with brokers – when I delete broker pod – no topic configuration 
is left.

Persistent disk do work. I have checked them several times.

Is it really possible to persist zookeeper configuration and broker topic 
configuration?
Or the only way is to use multiple zookeeper and brokers?

Best regards,
Nick

Reply via email to