3 ms·
StatefulSets are introduced as "when you need persistent storage" and not a lot more than that. A key idea that is often skipped is that k8s doesn't want to pre
by lazyant 4y ago
StatefulSets are introduced as "when you need persistent storage" and not a lot more than that. A key idea that is often skipped is that k8s doesn't want to presume how a cluster of "database" nodes ("database" in the wide sense, including RMQ, Redis etc) coordinate their HA.
So when a k8s node dies with a sts on it, unlike other pods, the sts pod is NOT recreated (not wanting to interfere with whatever mechanism the db cluster has to deal with it). I've found most people working with k8s don't know about this behaviour.