3 ms·
> if your pods aren't totally stateless This is exactly the bit I care about: what do I do with "stateful" systems (my db storage, mail server data,...)? If I
by necovek 6y ago
> if your pods aren't totally stateless
This is exactly the bit I care about: what do I do with "stateful" systems (my db storage, mail server data,...)?
If I just mount those from external volumes, I lose a lot of idempotency and I now have to worry about whether I am trying to attach that volume to PG 9.3.1 or 9.3.2 or 12.0 (some are fine, others might cause data corruption).
I know idempotent deploys are all the rage, but all those deployed apps are there to serve some data which is as stateful as it can be.
I'd like a system where those external volumes are automatic snapshots on LVM (or ZFS/btrfs) when attached, but that introduces a whole another level of what-now if you need to go back to an older, now slightly stale data set.
How does k8s solve this problem for me?
- tasuki 6y agoThis question always gets asked. I'm hoping for an answer one day too!