nats-streaming-operator
nats-streaming-operator copied to clipboard
Helm chart deployment broken apps.DeploymentStrategy
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"
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
For anyone coming across this, one quick workaround could be:
helm install --set updateStrategy=RollingUpdate nats-streaming .