gluster / gluster-kubernetes

GlusterFS Native Storage Service for Kubernetes
Apache License 2.0
875 stars 389 forks source link

Prevent volume creation when heketi pod is deleted #573

Closed Webgardener closed 5 years ago

Webgardener commented 5 years ago

Hello. I noticed that deleting the heketi pod while somes PVCs are Pending leads to heketi.db inconsistency. Repairing the heketi.db is possible but time consuming and prone to errors.

Looking for a way to prevent this to happen... Maybe by introducing a pre stop lifecycle hook in the heketi deployment so that I can put the heketi server in read-only mode ?

Ideas welcomed here :)

nixpanic commented 5 years ago

This is probably something that could be explained in the heketi documentation. Maybe you want to move the conversation to the heketi project?

/cc @phlogistonjohn