# Logstash in K8s: Deployment vs StatefulSet

**URL:** <https://discuss.elastic.co/t/logstash-in-k8s-deployment-vs-statefulset/296595>\
**Category:** Logstash\
**Created:** [February 8, 2022, 12:29pm UTC](https://discuss.elastic.co/t/logstash-in-k8s-deployment-vs-statefulset/296595 "2022-02-08T12:29:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nadiia\_Maltseva](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nadiia_maltseva/32/101530_2.png) [@Nadiia\_Maltseva](https://discuss.elastic.co/u/Nadiia_Maltseva)\
**Post date:** [February 8, 2022, 12:29pm UTC](https://discuss.elastic.co/t/logstash-in-k8s-deployment-vs-statefulset/296595/1 "2022-02-08T12:29:02Z")

</div>

Hi, community!

I am running Logstash on an EC2 instance in AWS. And I want to migrate to Kubernetes (since all our applications are running there).

Could you, please, advise me on what factors should be taken into account in choosing between deployment and stateful set? I would appreciate your experience here.

---

<div class="post-metadata">

**Author:** ![duclm2609](https://avatars.discourse-cdn.com/v4/letter/d/90ced4/32.png) [@duclm2609](https://discuss.elastic.co/u/duclm2609)\
**Post date:** [February 11, 2022, 6:43am UTC](https://discuss.elastic.co/t/logstash-in-k8s-deployment-vs-statefulset/296595/2 "2022-02-11T06:43:50Z")

</div>

I'm using Logstash on Kubernetes and use the official Helm chart at this [link](https://github.com/elastic/helm-charts/tree/main/logstash).  
This chart deploys Logstash as a statefulset. Although this is not directly answer your question, maybe it provides some hint for your consideration.

---

<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:** [March 11, 2022, 6:44am UTC](https://discuss.elastic.co/t/logstash-in-k8s-deployment-vs-statefulset/296595/3 "2022-03-11T06:44:00Z")

</div>

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