# Save index-template in helm chart

**URL:** <https://discuss.elastic.co/t/save-index-template-in-helm-chart/349038>\
**Category:** Kibana\
**Tags:** ilm-index-lifecycle-management\
**Created:** [December 11, 2023, 11:52am UTC](https://discuss.elastic.co/t/save-index-template-in-helm-chart/349038 "2023-12-11T11:52:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nkarthik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nkarthik/32/85686_2.png) [@nkarthik](https://discuss.elastic.co/u/nkarthik)\
**Post date:** [December 11, 2023, 11:52am UTC](https://discuss.elastic.co/t/save-index-template-in-helm-chart/349038/1 "2023-12-11T11:52:47Z")

</div>

Hi, I am using the 7.17 elastic stack. I know that we can create the index template in the kibana UI. But is there a way to create index-template as a YAML of any Kubernetes resource, so that every time kibana gets deployed, the same default index-template gets loaded?

---

<div class="post-metadata">

**Author:** ![nkarthik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nkarthik/32/85686_2.png) [@nkarthik](https://discuss.elastic.co/u/nkarthik)\
**Post date:** [December 12, 2023, 9:41am UTC](https://discuss.elastic.co/t/save-index-template-in-helm-chart/349038/2 "2023-12-12T09:41:38Z")

</div>

Hi, Can anyone help me with this query?

---

<div class="post-metadata">

**Author:** ![vincenbr](https://avatars.discourse-cdn.com/v4/letter/v/8edcca/32.png) [@vincenbr](https://discuss.elastic.co/u/vincenbr)\
**Post date:** [December 12, 2023, 1:02pm UTC](https://discuss.elastic.co/t/save-index-template-in-helm-chart/349038/3 "2023-12-12T13:02:05Z")

</div>

Hi, there was a hint for doing that in the (discontinued) helm chart for Elastic stack: [https://github.com/elastic/helm-charts/blob/main/elasticsearch/README.md#how-to-configure-templates-post-deployment](https://github.com/elastic/helm-charts/blob/main/elasticsearch/README.md#how-to-configure-templates-post-deployment)  
Now, for information, the recommended way is to use ECK (the official operator) which enables advanced stack configuration (like index templates, among others) BUT it is not supposed to work with Elasticsearch before 8.6.1 : [Elastic Stack configuration policies | Elastic Cloud on Kubernetes [2.10] | Elastic](https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-stack-config-policy.html)

---

<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:** [January 9, 2024, 1:02pm UTC](https://discuss.elastic.co/t/save-index-template-in-helm-chart/349038/4 "2024-01-09T13:02:19Z")

</div>

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