# ECK on AWS EKS: Persisting a volumeClaimTemplates

**URL:** <https://discuss.elastic.co/t/eck-on-aws-eks-persisting-a-volumeclaimtemplates/273950>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Created:** [May 25, 2021, 1:53pm UTC](https://discuss.elastic.co/t/eck-on-aws-eks-persisting-a-volumeclaimtemplates/273950 "2021-05-25T13:53:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinnar](https://avatars.discourse-cdn.com/v4/letter/v/bb73d2/32.png) [@vinnar](https://discuss.elastic.co/u/vinnar)\
**Post date:** [May 25, 2021, 1:53pm UTC](https://discuss.elastic.co/t/eck-on-aws-eks-persisting-a-volumeclaimtemplates/273950/1 "2021-05-25T13:53:42Z")

</div>

I have an ECK 1.3.1 deployed in AWS EKS. In my elastic.yml I have specified a volumeClaimTemplates to use a storageClass that was created using another deployment file.

```
# StorageClass definition

apiVersion: storage.k8s.io/v1

kind: StorageClass

metadata:

name: storage-01

provisioner: kubernetes.io/aws-ebs

parameters:

type: gp2

iopsPerGB: "300"

fsType: ext4

reclaimPolicy: Retain

allowVolumeExpansion: true

```

I would like to be able to re-use the EBS volumes that get created with the deployment. So I had set the reclaimPolicy to Retain in the storageClass declaration. However, everytime I delete/apply the elastic deployment, a new EBS volume is attached. How can I make sure that a new deployment in the cluster would attach to the existing EBS volume?

I see in latest ECK (1.5), there is an option to specify volume claim delete policy ([Volume claim templates](https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-volume-claim-templates.html)), wondering if something similar could be possible in 1.3.1?

` volumeClaimDeletePolicy: DeleteOnScaledownOnly`

Thanks.

---

<div class="post-metadata">

**Author:** ![Thibault\_Richard](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thibault_richard/32/50513_2.png) [@Thibault\_Richard](https://discuss.elastic.co/u/Thibault_Richard)\
**Post date:** [May 31, 2021, 9:45am UTC](https://discuss.elastic.co/t/eck-on-aws-eks-persisting-a-volumeclaimtemplates/273950/2 "2021-05-31T09:45:54Z")

</div>

> [@vinnar](#):
>
> I see in latest ECK (1.5), there is an option to specify volume claim delete policy ([Volume claim templates](https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-volume-claim-templates.html)), wondering if something similar could be possible in 1.3.1?

This is not possible in 1.3.1. This is only available from ECK 1.5.0.

What are you preventing from upgrading to the latest ECK version (1.6.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:** [June 28, 2021, 9:46am UTC](https://discuss.elastic.co/t/eck-on-aws-eks-persisting-a-volumeclaimtemplates/273950/3 "2021-06-28T09:46:29Z")

</div>

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