Thanks Alex. Will give this a try. So I just change the yaml file and hot-patch it or would I need to stop the cluster, delete it and make a new one?
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10 From: Oleksandr Shulgin<mailto:[email protected]> Sent: 02 July 2020 08:27 To: User<mailto:[email protected]> Subject: Re: What is the way to scale down Cassandra/Kubernetes cluster from 3 to 1 nodes using cass-operator On Thu, Jul 2, 2020 at 9:21 AM Manu Chadha <[email protected]<mailto:[email protected]>> wrote: Hi I have created a cluster using cass-operator - https://github.com/datastax/cass-operator. I suppose by default 3 replicas (3 node cluster) are created. I want to scale down the cluster from 3 to 1 nodes? I executed kubectl scale sts cluster1-dc1-default-sts --replicas=1 -n cass-operator statefulset.apps/cluster1-dc1-default-sts scaled I think that you should be editing the spec.size attribute of your CassandraDatacenter resource, instead of modifying the Statefulset directly. -- Alex
