nats-streaming-operator icon indicating copy to clipboard operation
nats-streaming-operator copied to clipboard

Helm chart deployment broken apps.DeploymentStrategy

Open rchenzheng opened this issue 5 years ago • 2 comments

helm install --name nats-steaming --namespace nats-io -f values.yaml .

Error:

Error: release nats-steaming-operator failed: Deployment.apps "nats-steaming-operator-nats-streaming-operator" is invalid: spec.strategy: Unsupported value: apps.DeploymentStrategy{Type:"OnDelete", RollingUpdate:(*apps.RollingUpdateDeployment)(nil)}: supported values: "Recreate", "RollingUpdate"

rchenzheng avatar Jan 28 '20 18:01 rchenzheng

The values.yaml references the StatefulSet docs incorrectly. The operator is deployed as a Deployment which only allows "Recreate" or "RollingUpdate", not "OnDelete"

https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy

nick-phillips-dev avatar May 19 '20 11:05 nick-phillips-dev

For anyone coming across this, one quick workaround could be:

helm install --set updateStrategy=RollingUpdate nats-streaming .

gnarea avatar Jun 25 '20 17:06 gnarea