# How to resize an ECK cluster

**URL:** <https://discuss.elastic.co/t/how-to-resize-an-eck-cluster/241306>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Created:** [July 15, 2020, 1:47pm UTC](https://discuss.elastic.co/t/how-to-resize-an-eck-cluster/241306 "2020-07-15T13:47:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kay\_Khan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kay_khan/32/45028_2.png) [@Kay\_Khan](https://discuss.elastic.co/u/Kay_Khan)\
**Post date:** [July 15, 2020, 1:47pm UTC](https://discuss.elastic.co/t/how-to-resize-an-eck-cluster/241306/1 "2020-07-15T13:47:37Z")

</div>

I have an elasticsearch cluster which has the `storage` field set to 10Gi, i want to resize this cluster (for testing purposes to 15Gi). However after changing the `storage` value from 10Gi to 15Gi i can see that the cluster still did not resize.

From what i can tell the aws-ebs storage [https://kubernetes.io/docs/concepts/storage/storage-classes/](https://kubernetes.io/docs/concepts/storage/storage-classes/) allows for volume expansion wehn the field `allowVolumeExpansion` is true. But even when i have this, the volume is never expanded when i change that `storage` value

```
---
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
  name: elasticsearch-storage
  namespace: test
provisioner: kubernetes.io/aws-ebs
parameters:
  type: gp2
reclaimPolicy: Delete
allowVolumeExpansion: true
---
apiVersion: elasticsearch.k8s.elastic.co/v1beta1
kind: Elasticsearch
metadata:
  name: elasticsearch
  namespace: test
spec:
  version: 7.4.2
  spec:
    http:
      tls:
        certificate:
          secretName: es-cert
  nodeSets:
  - name: default
    count: 3
    volumeClaimTemplates:
    - metadata:
        name: elasticsearch-data
        annotations:
          volume.beta.kubernetes.io/storage-class: elasticsearch-storage
      spec:
        accessModes:
        - ReadWriteOnce
        storageClassName: elasticsearch-storage
        resources:
          requests:
            storage: 15Gi
    config:
      node.master: true
      node.data: true
      node.ingest: true
      node.store.allow_mmap: false
      xpack.security.authc.realms:
        native:
          native1: 
            order: 1
---
```

---

<div class="post-metadata">

**Author:** ![Anya\_Sabo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anya_sabo/32/49903_2.png) [@Anya\_Sabo](https://discuss.elastic.co/u/Anya_Sabo)\
**Post date:** [July 15, 2020, 2:14pm UTC](https://discuss.elastic.co/t/how-to-resize-an-eck-cluster/241306/2 "2020-07-15T14:14:53Z")

</div>

Resizing data volumes is documented [here](https://www.elastic.co/guide/en/cloud-on-k8s/1.1/k8s-orchestration.html#k8s-orchestration-limitations)

---

<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:** [November 4, 2022, 8:06am UTC](https://discuss.elastic.co/t/how-to-resize-an-eck-cluster/241306/3 "2022-11-04T08:06:24Z")

</div>


