# Why kibana doesn't have statefulset.yaml in templates?

**URL:** <https://discuss.elastic.co/t/why-kibana-doesnt-have-statefulset-yaml-in-templates/234557>\
**Category:** Kibana\
**Created:** [May 27, 2020, 2:12pm UTC](https://discuss.elastic.co/t/why-kibana-doesnt-have-statefulset-yaml-in-templates/234557 "2020-05-27T14:12:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![chinmoy\_padhi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chinmoy_padhi/32/68568_2.png) [@chinmoy\_padhi](https://discuss.elastic.co/u/chinmoy_padhi)\
**Post date:** [May 27, 2020, 2:12pm UTC](https://discuss.elastic.co/t/why-kibana-doesnt-have-statefulset-yaml-in-templates/234557/1 "2020-05-27T14:12:23Z")

</div>

Hi,  
When I checked the templates of Kibana there is no statefulset.yaml file  
I was just wondering how Kibana container deployment happening when there is no api version mentioned the way it is present in `/elasticsearch/templates/statefulset.yaml`.so how the helm-charts were being used and decided which api version to be used for deployment

---

<div class="post-metadata">

**Author:** ![Julien\_MAILLERET](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/julien_mailleret/32/45074_2.png) [@Julien\_MAILLERET](https://discuss.elastic.co/u/Julien_MAILLERET)\
**Post date:** [May 27, 2020, 7:25pm UTC](https://discuss.elastic.co/t/why-kibana-doesnt-have-statefulset-yaml-in-templates/234557/2 "2020-05-27T19:25:12Z")

</div>

Hi @chinmoy_padhi,  
If your question is about [Elastic Kibana Helm chart](https://github.com/elastic/helm-charts/tree/master/kibana), Kibana doesn't use any [Statefulset](https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/), it is using a K8S [Deployment](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/) resource which is defined [here](https://github.com/elastic/helm-charts/blob/master/kibana/templates/deployment.yaml).

---

<div class="post-metadata">

**Author:** ![chinmoy\_padhi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chinmoy_padhi/32/68568_2.png) [@chinmoy\_padhi](https://discuss.elastic.co/u/chinmoy_padhi)\
**Post date:** [May 28, 2020, 8:51am UTC](https://discuss.elastic.co/t/why-kibana-doesnt-have-statefulset-yaml-in-templates/234557/3 "2020-05-28T08:51:13Z")

</div>

Thanks @Julien_MAILLERET,  
That means Elasticsearch always comes up with elasticsearch-master-0,elasticsearch-master-1,elasticsearch-master-2 as the Statefulset maintains sticky identity for each of their pods and elasticsearch-master-0 always remain as MASTER pod. Can't we do the same to Kibana if we replicate or scale the instances of Kibana with Master & Slave concept. I am just wondering why and why not for Kibana if the same we are doing for elasticsearch? I am just thinking what so special about Elasticsearch that same sort of features can't be extended to Kibana,  
If any limitation for Kibana.

---

<div class="post-metadata">

**Author:** ![Julien\_MAILLERET](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/julien_mailleret/32/45074_2.png) [@Julien\_MAILLERET](https://discuss.elastic.co/u/Julien_MAILLERET)\
**Post date:** [May 28, 2020, 9:43am UTC](https://discuss.elastic.co/t/why-kibana-doesnt-have-statefulset-yaml-in-templates/234557/4 "2020-05-28T09:43:16Z")

</div>

> I am just thinking what so special about Elasticsearch that same sort of features can't be extended to Kibana

Elasticsearch is stateful application which manages data and need to handle clustering, this is why we need to use `StatefulSet` K8S resource.

Kibana is a totally stateless application which doesn't manage any data, and doesn't have any Master & Slave concept.  
If you want to scale Kibana, you just need to deploy new Kibana instances targetting the same Elasticsearch cluster and put them behind a Load Balancer.  
This is why we can use `Deployment` K8S resource for it which manage scaling by starting new pods and adding them to the K8S `Service`.

If you need more details, I invite you to read Elasticsearch and Kibana documentation, as well as K8S documentation for `Statefulset` and `Deployment` to understand the differences.

---

<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 25, 2020, 9:43am UTC](https://discuss.elastic.co/t/why-kibana-doesnt-have-statefulset-yaml-in-templates/234557/5 "2020-06-25T09:43:24Z")

</div>

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