# Providing Hyphenation Files on self hosted Kubernetes cluster

**URL:** <https://discuss.elastic.co/t/providing-hyphenation-files-on-self-hosted-kubernetes-cluster/362176>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [June 27, 2024, 9:39pm UTC](https://discuss.elastic.co/t/providing-hyphenation-files-on-self-hosted-kubernetes-cluster/362176 "2024-06-27T21:39:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JDev64](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jdev64/32/114248_2.png) [@JDev64](https://discuss.elastic.co/u/JDev64)\
**Post date:** [June 27, 2024, 9:39pm UTC](https://discuss.elastic.co/t/providing-hyphenation-files-on-self-hosted-kubernetes-cluster/362176/1 "2024-06-27T21:39:29Z")

</div>

I'm building a multi-node elk stack which is going to use the [Hyphenation decompounder token filter](https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-hyp-decomp-tokenfilter.html) for multiple languages. The official documentation states, that to use the filter the `hyphenation_patterns_path` needs to be provided. The path should point to an Apache FOP (Formatting Objects Processor) XML hyphenation pattern file. In my case, I downloaded the zip archive that was linked to by the documentation [offo-hyphenation\_v1.2.zip](https://sourceforge.net/projects/offo/files/offo-hyphenation/1.2/offo-hyphenation_v1.2.zip/download). The archive is filled with a bunch of hyphenation XML files which need to be stored on the cluster. For this to happen I have the following questions:

- Do the files need to be provided on each node of the cluster? In my case, I'm using two master- and one data node.
- What is the best way or working way, to put the files onto the nodes? I've tried to use ConfigMaps to mount the files to the nodes. But since I want to use more than a dozen hyphenation files I would have to create a ConfigMap per XML file which would create a lot of extra configuration even more so if the files are required on every node of the cluster.

My cluster is running version 8.14 of Elastic Search.

I found this thread on the forum that had the same goal as me, but unfortunately never received a reply:

> [@Config directory location for token filter helper files](https://discuss.elastic.co/t/config-directory-location-for-token-filter-helper-files/299078):
>
> I want to use token filters which require some helper files in the config directory (e.g. the hyphenation decompounder token filter, which requires an xml file in the hyphenation\_patterns\_path parameter). The docs says: This path must be absolute or relative to the config location. ([Hyphenation decompounder token filter | Elasticsearch Guide [8.0] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-hyp-decomp-tokenfilter.html)) I build Elasticsearch from docker and host on Azure Kubernetes cluster. My question is how can I upload files to this config directory o…
