# Ilm.json file

**URL:** <https://discuss.elastic.co/t/ilm-json-file/254974>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [November 10, 2020, 9:10pm UTC](https://discuss.elastic.co/t/ilm-json-file/254974 "2020-11-10T21:10:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Armen\_Khachikyan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/armen_khachikyan/32/46158_2.png) [@Armen\_Khachikyan](https://discuss.elastic.co/u/Armen_Khachikyan)\
**Post date:** [November 10, 2020, 9:10pm UTC](https://discuss.elastic.co/t/ilm-json-file/254974/1 "2020-11-10T21:10:37Z")

</div>

Please help me. is there anyway to create an JSON file, put there our ILM policy, and force elasticsearch to read that file(or add the path of location ILM policies in `elasticsearch.yml`)?

---

<div class="post-metadata">

**Author:** ![dakrone](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dakrone/32/23351_2.png) [@dakrone](https://discuss.elastic.co/u/dakrone)\
**Post date:** [November 10, 2020, 9:46pm UTC](https://discuss.elastic.co/t/ilm-json-file/254974/2 "2020-11-10T21:46:27Z")

</div>

Hi Armen,

No, there is no way to do that. For almost all things (security excepted) we've moved away from configuration via files on disk. You'll have to use the API for configuration.

---

<div class="post-metadata">

**Author:** ![Armen\_Khachikyan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/armen_khachikyan/32/46158_2.png) [@Armen\_Khachikyan](https://discuss.elastic.co/u/Armen_Khachikyan)\
**Post date:** [November 16, 2020, 11:32pm UTC](https://discuss.elastic.co/t/ilm-json-file/254974/3 "2020-11-16T23:32:00Z")

</div>

Thank you @dakrone,  
and please can you help with a question.  
How can I add ILM policy to Kubernetes,s elasticsearch pod, which will be alive after pod restarting pod.

---

<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:** [December 14, 2020, 11:32pm UTC](https://discuss.elastic.co/t/ilm-json-file/254974/4 "2020-12-14T23:32:10Z")

</div>

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