-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add persistent storage claim #52
base: master
Are you sure you want to change the base?
Conversation
two things probably worth adding:
|
I don't see what you mean with 1.? Are you thinking about adding a StatefulSet so that there could be multiple independent instances with each their own PVC? That could be helpful, but I'd push that to a later PR - it's not necessarily needed to support this. |
IIRC StatefulSet will not kick pod from assigned node automatically in case it's deployed by StatefulSet controller (assumes that PVC is local by default?) In case of deployment, in case of node failure, and local PVC, pod will be reassigned to another node, losing local data. On the other side, if PVC uses some HA storage (rook, longhorn, etc) then Deployment is preferred. |
I don't think so, the difference between a Deployment and StatefulSet is that for a StatefulSet, every Pod gets a PVC and every Pod has a stable network identity. I just checked the docs again and could not find any mention of that. If that is the case, I'd be very happy if you could point me to the docs or the code for that, you truly never stop learning.
Yes, but only if the PVC uses local storage. I would expect any cluster operator to know about the implications of local storage, so that's not something that I see the chart having to take care of. Of course, this PR only works for If we wanted to support multiple servers with persistence, we'll need to support a This could be done with a 5.1.0 version. For now, I'd be happy about adding support for a PVC in general, we can extend this at a later point anyways. |
To persist data, this adds a persistent storage claim. BREAKING CHANGES: The default storage path is now "/storage" to make the configuration to use a PVC easier. This requires action only if you have not explicitly set the storage path AND if you require the storage to be at "/tmp".
To persist data, this adds a persistent storage claim.
BREAKING CHANGES: The default storage path is now "/storage" to make
the configuration to use a PVC easier.
This requires action only if you have not explicitly set the storage path
AND if you require the storage to be at "/tmp".