# Deploying Camunda 8 with Helm: Zeebe StatefulSet without Persistent Volume?

**URL:** <https://forum.camunda.io/t/deploying-camunda-8-with-helm-zeebe-statefulset-without-persistent-volume/47600>\
**Category:** Discussion & Questions\
**Tags:** zeebe, camunda-platform-8, process-engine\
**Created:** [September 18, 2023, 2:53pm UTC](https://forum.camunda.io/t/deploying-camunda-8-with-helm-zeebe-statefulset-without-persistent-volume/47600 "2023-09-18T14:53:22Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![abasha](https://forum.camunda.io/user_avatar/forum.camunda.io/abasha/32/26523_2.png) [@abasha](https://forum.camunda.io/u/abasha)\
**Post date:** [September 18, 2023, 2:53pm UTC](https://forum.camunda.io/t/deploying-camunda-8-with-helm-zeebe-statefulset-without-persistent-volume/47600/1 "2023-09-18T14:53:22Z")

</div>

Hello Camunda Community,

I’m currently planning to deploy a self-managed Camunda 8 platform using Helm. However, there’s a challenge in our infrastructure: we don’t deploy statefulsets that require persistent volumes.

While I have external instances of Elasticsearch and PostgreSQL, the default Zeebe statefulset mandates a persistent volume. In the Helm options, it is written that there’s a choice for PersistenceType: disk, local, and memory. My understanding is that if we opt for ‘local’ or ‘memory’, data might be lost upon pod restart.

Given our constraints, I’m trying to find out:

1. What exactly does the Zeebe workflow engine store in its persistent volume?
2. What are the potential implications or risks of running a Zeebe statefulset in a production environment without a persistent volume?(with PersistenceType: local, and memory)

I hope to get insights from someone who has tackled a similar challenge or has expertise in this area. Thank you in advance for your help!

---

<div class="post-metadata">

**Author:** ![nathan.loding](https://forum.camunda.io/user_avatar/forum.camunda.io/nathan.loding/32/24171_2.png) [@nathan.loding](https://forum.camunda.io/u/nathan.loding)\
**Post date:** [September 18, 2023, 3:15pm UTC](https://forum.camunda.io/t/deploying-camunda-8-with-helm-zeebe-statefulset-without-persistent-volume/47600/2 "2023-09-18T15:15:03Z")

</div>

Hi @abasha, welcome to the forums! Zeebe uses a local RocksDB instance to manage the current state of everything across the brokers. Have a look at [this forum thread](https://forum.camunda.io/t/does-zeebe-store-its-state-in-rocksdb-or-any-database/36699/2) and [this blog post](https://camunda.com/blog/2023/03/zeebe-batch-processing/) to learn a bit more about how the Zeebe internals work and how/why it persists data.

---

<div class="post-metadata">

**Author:** ![abasha](https://forum.camunda.io/user_avatar/forum.camunda.io/abasha/32/26523_2.png) [@abasha](https://forum.camunda.io/u/abasha)\
**Post date:** [September 19, 2023, 7:35am UTC](https://forum.camunda.io/t/deploying-camunda-8-with-helm-zeebe-statefulset-without-persistent-volume/47600/3 "2023-09-19T07:35:49Z")

</div>

Thank you for the insights. I understand from the resources you provided that Zeebe’s state in RocksDB contains crucial information about deployed process models and current process instance executions.  
If we were to use the PersistenceType as “memory” and encounter a scenario where this state data is lost due to pod restarts, can you elaborate on the specifics of what we stand to lose? Will active workflows be disrupted? And how will this loss impact the system’s ability continue its operations?  
Your clarification on this would be very valuable as we navigate our deployment choices.

---

<div class="post-metadata">

**Author:** ![abasha](https://forum.camunda.io/user_avatar/forum.camunda.io/abasha/32/26523_2.png) [@abasha](https://forum.camunda.io/u/abasha)\
**Post date:** [September 19, 2023, 8:22am UTC](https://forum.camunda.io/t/deploying-camunda-8-with-helm-zeebe-statefulset-without-persistent-volume/47600/4 "2023-09-19T08:22:20Z")

</div>

Additionally, I have another query regarding the configuration of RocksDB. Is there a possibility to set up RocksDB externally, for example, on a separate Linux node, and then configure Zeebe brokers to use this external RocksDB instance as its database? I’m exploring alternative setups to align with our infrastructure needs. Any insights would be helpful.

---

<div class="post-metadata">

**Author:** ![nathan.loding](https://forum.camunda.io/user_avatar/forum.camunda.io/nathan.loding/32/24171_2.png) [@nathan.loding](https://forum.camunda.io/u/nathan.loding)\
**Post date:** [September 19, 2023, 6:40pm UTC](https://forum.camunda.io/t/deploying-camunda-8-with-helm-zeebe-statefulset-without-persistent-volume/47600/5 "2023-09-19T18:40:46Z")

</div>

@abasha - you would lose everything that isn’t historical data. I’m not sure there’s a way around needing a persistent volume to run Camunda. Another way to think of it would be to imagine that Zeebe is a database; you would want that database persisted in production.

There isn’t a way to connect to an external database. There are some issues with performance and scaling that aren’t easily solvable with an external database. The first couple minutes of [this CamundaCon presentation](https://www.youtube.com/watch?v=JbXKgQQmukE) speak a little bit to that.

---

<div class="post-metadata">

**Author:** ![abasha](https://forum.camunda.io/user_avatar/forum.camunda.io/abasha/32/26523_2.png) [@abasha](https://forum.camunda.io/u/abasha)\
**Post date:** [September 20, 2023, 10:05am UTC](https://forum.camunda.io/t/deploying-camunda-8-with-helm-zeebe-statefulset-without-persistent-volume/47600/6 "2023-09-20T10:05:02Z")

</div>

@nathan.loding first of all i want to say thank you,  
I’m currently looking into deploying the Camunda 8 platform on a Linux node using Docker containers. While going through the documentation, I noted that it specifies the Docker images are optimized for production use only on Linux systems,  
However, I’m a bit uncertain about a few things:

1. The documentation touches on Docker images, but what if one was to deploy these images via Helm in a Kubernetes environment, or simply as a standalone Docker container on a Linux node? Would this still align with the recommended best practices(for production)? [Docker | Camunda Platform 8 Docs](https://docs.camunda.io/docs/self-managed/platform-deployment/docker/)
2. For those familiar with the setup, what are the best practices for deploying on a Linux node, especially when integrating components like Zeebe brokers? I intend to use Elasticsearch and PostgreSQL externally. Would it be advantageous to distribute Zeebe components across distinct Linux nodes for performance and reliability?

Any insights or experiences related to the above would greatly assist in shaping my infrastructure strategy. Thanks in advance!

---

<div class="post-metadata">

**Author:** ![nathan.loding](https://forum.camunda.io/user_avatar/forum.camunda.io/nathan.loding/32/24171_2.png) [@nathan.loding](https://forum.camunda.io/u/nathan.loding)\
**Post date:** [September 20, 2023, 9:51pm UTC](https://forum.camunda.io/t/deploying-camunda-8-with-helm-zeebe-statefulset-without-persistent-volume/47600/7 "2023-09-20T21:51:53Z")

</div>

The Docker images are production ready - our Kubernetes install uses the very same images. However, there’s obviously a bit more configuration required on your end to wire all the containers together. We prefer using Helm/k8s to Docker, but it is supported.

I am not sure on the second question as that’s something I haven’t worked with myself yet. I will ask and see what information I can dig up!

---

<div class="post-metadata">

**Author:** ![nathan.loding](https://forum.camunda.io/user_avatar/forum.camunda.io/nathan.loding/32/24171_2.png) [@nathan.loding](https://forum.camunda.io/u/nathan.loding)\
**Post date:** [September 21, 2023, 2:38pm UTC](https://forum.camunda.io/t/deploying-camunda-8-with-helm-zeebe-statefulset-without-persistent-volume/47600/8 "2023-09-21T14:38:51Z")

</div>

Hey @abasha - I talked with some of our engineers, and our Helm charts default to 1 Zeebe broker per k8s pod, so distributing brokers across nodes would make sense for a production environment.

Hope that helps!

---

<div class="post-metadata">

**Author:** ![abasha](https://forum.camunda.io/user_avatar/forum.camunda.io/abasha/32/26523_2.png) [@abasha](https://forum.camunda.io/u/abasha)\
**Post date:** [September 25, 2023, 7:40am UTC](https://forum.camunda.io/t/deploying-camunda-8-with-helm-zeebe-statefulset-without-persistent-volume/47600/9 "2023-09-25T07:40:45Z")

</div>

> [@nathan.loding](#):
>
> The Docker images are production ready - our Kubernetes install uses the very same images. However, there’s obviously a bit more configuration required on your end to wire all the containers together. We prefer using Helm/k8s to Docker, but it is supported.
> 
> I am not sure on the second question as that’s something I haven’t worked with myself yet. I will ask and see what information I can dig up!

Thank you, Nathan, for clarifying that. I wanted to double-check something. You mentioned that the Docker images are supported, but I’d like to understand more about the recommended environments. In the documentation, it clearly states:

“DANGER: While the Docker images themselves are supported for production usage, the Docker Compose files are designed to be used by developers to run an environment locally; they are not designed to be used in production. We recommend to use Kubernetes in production.” [Docker | Camunda 8 Docs](https://docs.camunda.io/docs/self-managed/platform-deployment/docker/?_gl=1*1p1dvxo*_ga*NDIwNzk5MDA4LjE2OTQwNjk4NDY.*_ga_4EYN8X5FNR*MTY5NTYyNzMwNy4yNi4xLjE2OTU2MjczMzkuMjguMC4w)

Given this, is it indeed recommended to run these containers in Docker without the aid of k8s/helm for production purposes? Specifically, if we were to bypass Docker Compose and just deploy the Docker containers, would that be advisable in a production environment? I’d appreciate some more insights on this.

---

<div class="post-metadata">

**Author:** ![Ingo\_Richtsmeier](https://forum.camunda.io/user_avatar/forum.camunda.io/ingo_richtsmeier/32/25968_2.png) [@Ingo\_Richtsmeier](https://forum.camunda.io/u/Ingo_Richtsmeier)\
**Post date:** [September 25, 2023, 1:25pm UTC](https://forum.camunda.io/t/deploying-camunda-8-with-helm-zeebe-statefulset-without-persistent-volume/47600/10 "2023-09-25T13:25:58Z")

</div>

Hi @abasha,

The containers are always built from the same images and they can be used in a production environment.

It is not recommended to wire the containers to a cluster by yourself. In docker-compose, you have no failover for the Zeebe engine as you get it with the default setup from Helm in Kubernetes. Zeebe is just started in a single instance in docker, but three times (or even more) in Kubernetes.

Hope this helps, Ingo

---

<div class="post-metadata">

**Author:** ![abasha](https://forum.camunda.io/user_avatar/forum.camunda.io/abasha/32/26523_2.png) [@abasha](https://forum.camunda.io/u/abasha)\
**Post date:** [September 27, 2023, 7:53am UTC](https://forum.camunda.io/t/deploying-camunda-8-with-helm-zeebe-statefulset-without-persistent-volume/47600/11 "2023-09-27T07:53:02Z")

</div>

Hello Ingo,

I understand that when using docker-compose, the Zeebe engine does not have the failover capabilities as it would in a Kubernetes setup. Given that, to rephrase my understanding: if a node goes down, there will be a period of downtime. However, once the node is back online and the containers are restarted, the system should resume its operations. Most importantly, there wouldn’t be any data loss due to the downtime, and everything would pick up from where it left off. I’m aware that the service will be restarted, but it will retain its configuration ,and everything will be as it was before. Is my understanding correct?

---

<div class="post-metadata">

**Author:** ![abasha](https://forum.camunda.io/user_avatar/forum.camunda.io/abasha/32/26523_2.png) [@abasha](https://forum.camunda.io/u/abasha)\
**Post date:** [September 27, 2023, 8:00am UTC](https://forum.camunda.io/t/deploying-camunda-8-with-helm-zeebe-statefulset-without-persistent-volume/47600/12 "2023-09-27T08:00:14Z")

</div>

We’re contemplating deploying Camunda BPM v8 without the use of Kubernetes, given our infrastructure constraints around stateful applications like StatefulSets. With this context, do you have any suggestions on alternative deployment strategies for Camunda BPM?

Moreover, is there a practice to run three Zeebe containers without Helm/k8s, but on separate nodes? We’re aiming to achieve failover capabilities. Any advice or experiences shared around this would be of immense value to us.

---

<div class="post-metadata">

**Author:** ![Ingo\_Richtsmeier](https://forum.camunda.io/user_avatar/forum.camunda.io/ingo_richtsmeier/32/25968_2.png) [@Ingo\_Richtsmeier](https://forum.camunda.io/u/Ingo_Richtsmeier)\
**Post date:** [September 27, 2023, 9:34am UTC](https://forum.camunda.io/t/deploying-camunda-8-with-helm-zeebe-statefulset-without-persistent-volume/47600/13 "2023-09-27T09:34:24Z")

</div>

Hi @abasha,

> [@abasha](#):
>
> given our infrastructure constraints around stateful applications like StatefulSets

You can see a Zeebe cluster as a database for process instances.

Would you ever install a relational database without a file system?

It is useful for some scenarios (unit tests), but risk of loosing data without a filesystem increases in Zeebe as well as in relational databases the longer the process instances/data have to be stored.

> [@abasha](#):
>
> there wouldn’t be any data loss due to the downtime, and everything would pick up from where it left off.

Zeebe uses replication and partition distribution for failover: [Partitions | Camunda 8 Docs](https://docs.camunda.io/docs/components/zeebe/technical-concepts/partitions/). With this, another node can take over the work of a broken node. When the node is back up, it will become a follower for other nodes. You can read more details here: [How to Achieve Geo-redundancy with Zeebe | Camunda](https://camunda.com/blog/2022/06/how-to-achieve-geo-redundancy-with-zeebe/)

Hope this helps, Ingo

---

<div class="post-metadata">

**Author:** ![abasha](https://forum.camunda.io/user_avatar/forum.camunda.io/abasha/32/26523_2.png) [@abasha](https://forum.camunda.io/u/abasha)\
**Post date:** [September 27, 2023, 10:01am UTC](https://forum.camunda.io/t/deploying-camunda-8-with-helm-zeebe-statefulset-without-persistent-volume/47600/14 "2023-09-27T10:01:27Z")

</div>

Thank you for your insights.

So, to clarify, it’s feasible to deploy a production-ready Camunda8 in Docker containers, without k8s/helm, across separate Linux nodes to ensure Zeebe failover, correct?

Also, are there insights or experiences you could share on managing Camunda8 components like Operate, Tasklist, Optimize, Identity, and Connectors on Linux nodes in containers?

---

<div class="post-metadata">

**Author:** ![Ingo\_Richtsmeier](https://forum.camunda.io/user_avatar/forum.camunda.io/ingo_richtsmeier/32/25968_2.png) [@Ingo\_Richtsmeier](https://forum.camunda.io/u/Ingo_Richtsmeier)\
**Post date:** [September 27, 2023, 2:02pm UTC](https://forum.camunda.io/t/deploying-camunda-8-with-helm-zeebe-statefulset-without-persistent-volume/47600/15 "2023-09-27T14:02:53Z")

</div>

Hi @abasha,

take a look at our deployment recommendations here: [Camunda 8 installation overview | Camunda Platform 8 Docs](https://docs.camunda.io/docs/self-managed/platform-deployment/overview/#deployment-recommendation)

All options contain links to further details.

Hope this helps, Ingo
