Setting podManagementPolicy in Juju k8s StatefulSet


By default when deploying a Juju k8s charm with storage a StatefulSet is created where the Pods will be created if there are several units.

In a default StatefulSet the podManagementPolicy is set to OrderedReady so each pod will be created after the previous one is ready.

In Juju on the other hand this value has been changed to Parallel so all Pods are initiated at the same time.

This is causing us issues in some applications like a Mariadb Cluster where the Primary Node has to be created before the Secondary ones.

Is there a way to set this value to OrderedReady for a juju k8s charm?


Looks like a feature gap. Thanks for filing the bug here so we can take a look and address it.