# Using ephemeral disks with Kubernetes operator

**URL:** <https://forums.foundationdb.org/t/using-ephemeral-disks-with-kubernetes-operator/2792>\
**Category:** Kubernetes Operator\
**Created:** [July 13, 2021, 3:37pm UTC](https://forums.foundationdb.org/t/using-ephemeral-disks-with-kubernetes-operator/2792 "2021-07-13T15:37:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![peter](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/peter/32/1064_2.png) [@peter](https://forums.foundationdb.org/u/peter)\
**Post date:** [July 13, 2021, 3:37pm UTC](https://forums.foundationdb.org/t/using-ephemeral-disks-with-kubernetes-operator/2792/1 "2021-07-13T15:37:51Z")

</div>

The wiki page on [Running-FoundationDB-in-the-Cloud](https://github.com/apple/foundationdb/wiki/Running-FoundationDB-in-the-Cloud#choosing-the-right-disks) recommends ephemeral disks.

> For most deployments, this is probably what you want.

However, I could not find an option to use ephemeral disks in the Kubernetes operator. Is this supported somehow?

---

<div class="post-metadata">

**Author:** ![johscheuer](https://avatars.discourse-cdn.com/v4/letter/j/f475e1/32.png) [@johscheuer](https://forums.foundationdb.org/u/johscheuer)\
**Post date:** [July 19, 2021, 7:06am UTC](https://forums.foundationdb.org/t/using-ephemeral-disks-with-kubernetes-operator/2792/2 "2021-07-19T07:06:40Z")

</div>

The operator already supports that by defining a `StorageClass` in your cluster that is backed by a Local Persistent Volume ([Kubernetes 1.14: Local Persistent Volumes GA | Kubernetes](https://kubernetes.io/blog/2019/04/04/kubernetes-1.14-local-persistent-volumes-ga)). In the process settings you can define a `VolumeClaimTemplate`, that template can point to a specific `StorageClass` (otherwise a default one will be used) that will make use of the LPV. If you want to use LPVs for all processes you can use the “general” process key otherwise use a more specific one. Stateless processes won’t create a PVC so you don’t have to worry about them.

I hope that helped.
