Comment 4 for bug 1960474

Revision history for this message
John A Meinel (jameinel) wrote :

The issue on K8s is that you cannot remove a pod "in the middle" of a stateful-set. You can only scale down the stateful set and then scale it back up again.
I think the functionality is certainly useful, and being 'stateful' means that it is explicitly important to be able to target the state of a given one. (If it has corrupted its data in the persistent volume that it is using then it needs to be replaced with a different unit.)

Its something that should go into the potential rework for a Juju pod controller (rather than just using stateful sets).

In the short time, though, because of K8s limitations you can't really just `juju remove-unit app/1` for a deployment.