# Completely scaling down an ECK-based cluster

**URL:** https://discuss.elastic.co/t/completely-scaling-down-an-eck-based-cluster/278074
**Category:** Elastic Cloud on Kubernetes (ECK)
**Created:** [July 7, 2021, 1:26pm UTC](https://discuss.elastic.co/t/completely-scaling-down-an-eck-based-cluster/278074 "2021-07-07T13:26:56Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![pkaramol](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pkaramol/32/22610_2.png) [@pkaramol](https://discuss.elastic.co/u/pkaramol)
#### Post date: [July 7, 2021, 1:26pm UTC](https://discuss.elastic.co/t/completely-scaling-down-an-eck-based-cluster/278074/1 "2021-07-07T13:26:56Z")

</div>

I want to completely scale down (i.e zero out all nodes) of an ECK-based cluster.

I have tried to set `nodeSet.count` to `0` but this fails with

```auto
spec.nodeSets: Required value: Elasticsearch needs to have at least one master node"

```

I am using a setup with a `nodeSet` having nodes will all roles (`data`, `master`, `ingest` and `ml`)

Any suggestions?

---

<div class="post-metadata">

### Author: ![sebgl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sebgl/32/48702_2.png) [@sebgl](https://discuss.elastic.co/u/sebgl)
#### Post date: [July 7, 2021, 2:24pm UTC](https://discuss.elastic.co/t/completely-scaling-down-an-eck-based-cluster/278074/2 "2021-07-07T14:24:16Z")

</div>

Do you want to basically remove that cluster altogether?  
In which case you can simply `kubectl delete elasticsearch <name>`.

---

<div class="post-metadata">

### Author: ![pkaramol](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pkaramol/32/22610_2.png) [@pkaramol](https://discuss.elastic.co/u/pkaramol)
#### Post date: [July 7, 2021, 2:31pm UTC](https://discuss.elastic.co/t/completely-scaling-down-an-eck-based-cluster/278074/3 "2021-07-07T14:31:11Z")

</div>

So I assume there is no way of zeroing out all nodes by somehow "keeping the cluster state"? Something in the likes of setting a deployment's replicas to 0?

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [August 4, 2021, 2:31pm UTC](https://discuss.elastic.co/t/completely-scaling-down-an-eck-based-cluster/278074/4 "2021-08-04T14:31:52Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
