pmint93 / helm-charts

My helm charts
https://pmint93.github.io/helm-charts/
Apache License 2.0
75 stars 74 forks source link

Allow setting spec.strategy.type=Recreate #31

Closed devurandom closed 2 years ago

devurandom commented 2 years ago

When using a volume backed by block storage it is not possible to use the same volume on different nodes at the same time: Multi-Attach error for volume ... Volume is already used by pod(s) ... (cf. e.g. https://stackoverflow.com/q/46887118)

Thus it would be nice if the Helm chart would allow me to set spec.strategy.type=Recreate, to prevent multiple pods from running at the same time (on different nodes): https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/deployment-v1/#DeploymentSpec

Closes: https://github.com/pmint93/helm-charts/issues/28

pmint93 commented 2 years ago

LGTM