Originally from the User Slack
@Ishaan_Raghav: hey,
So I am using scylla-cluster deployed using scylla-operator.
I want to vertically scale my cluster. To achieve this, I updated the resources in kind: scyllacluster which should make changes in my sts and hence the cluster but I get the following:
Message: can't apply statefulset update: can't update apps/v1, Kind=StatefulSet "namespace-canary/namespace-canary-scylla-rack-2": StatefulSet.apps "namespace-canary-scylla-rack-2" is invalid: spec: Forbidden: updates to statefulset spec for fields other than 'replicas', 'ordinals', 'template', 'updateStrategy', 'persistentVolumeClaimRetentionPolicy' and 'minReadySeconds' are forbidden
What’s the way to upscale using the operator?
@Maciej_Zimnoch: which operator version are you using?
what have you changed exactly?
@Ishaan_Raghav: Image versions:
Scylla: 5.2.7
Scylla-manager: 3.2.5
scylla-operator: 1.11.0
Scylla-manager-agent: 3.1.2
Helm chart:
Scylla: v1.11.5
Scylla-Operator: v1.11.0
Scylla-manager: v1.11.5
Changes I made:
kubectl edit scyllacluster myscylladb
and then edit memory in this section:
- agentResources:
requests:
cpu: 50m
memory: 10M
members: 6
name: rack-2
placement:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchExpressions:
- key: scylla/cluster
operator: In
values:
- namespace-canary
topologyKey: <http://kubernetes.io/hostname|kubernetes.io/hostname>
weight: 10
resources:
limits:
cpu: 2
memory: 6Gi #changed this to 8Gi
requests:
cpu: 2
memory: 4Gi #changed this to 6Gi
storage:
capacity: 50Gi
storageClassName: ssd-retain
And then I got the above error.
@Maciej_Zimnoch: You’re using quite old versions of scylla products, all of them ended their support long time ago.
This specific issue - updating immutable sts field - was fixed in 1.11.1.
@Ishaan_Raghav: Noted @Maciej_Zimnoch
I’ll upgrade and check more.