You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 1, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 1, 2026. It is now read-only.
Druid operator fails with Forbidden: updates to statefulset spec #230
I have a Druid cluster on Kubernetes. And I am trying to use ScalePVC feature to auto-increase PVC. When I try to run the operator from local, I see it works as expected - new sts gets created, PVC increases, pods don't restart.
The same code when I run via k8s in a pod, I see intermittent errors:
2025-07-10T20:39:04.203Z DEBUG events Failed to update [druid-cold:*v1.StatefulSet] due to [StatefulSet.apps "druid-cold" is invalid: spec: Forbidden: updates to statefulset spec for fields other than 'replicas', 'template', 'updateStrategy', 'persistentVolumeClaimRetentionPolicy' and 'minReadySeconds' are forbidden]. {"type": "Warning", "object": {"kind":"Druid","namespace":"druid-ns","name":"aa","uid":"26e2d0cf-cc54-4ef0-97e2-0e58beb69b32","apiVersion":"druid.apache.org/v1alpha1","resourceVersion":"27082726080"}, "reason": "DruidOperatorUpdateFail"}
2025-07-10T20:39:04.530Z ERROR Reconciler error {"controller": "druid", "controllerGroup": "druid.apache.org", "controllerKind": "Druid", "Druid": {"name":"aa","namespace":"druid-ns"}, "namespace": "druid-ns", "name": "aa", "reconcileID": "169f2ed2-44bf-417b-8ede-ff97b1d6857a", "error": "StatefulSet.apps \"druid-cold\" is invalid: spec: Forbidden: updates to statefulset spec for fields other than 'replicas', 'template', 'updateStrategy', 'persistentVolumeClaimRetentionPolicy' and 'minReadySeconds' are forbidden"}
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.15.3/pkg/internal/controller/controller.go:265
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.15.3/pkg/internal/controller/controller.go:226
And eventually, I see PVC getting patched
... successfully deleted with casacde=false
And I do see pod restarts in most cases. I am not sure how to debug this, since locally it works just fine.
Activity
AdheipSingh commentedon Jul 16, 2025
which version are you running on k8s, i remember fixing this.