Adding rack awareness to Elasticsearch cluster on GKE

We are trying to setup elasticsearch cluster on GKE. We are using official helm chart of elasticsearch for the same. We are able to setup a cluster. However we are not able to add allocation awareness attributes in the cluster.

The attribute that we are looking for high availability in GKE is zone which is available through label inside GKE node.

We want this label to be available inside pod so that we can use it for rack awareness. We found that node labels cannot be made available inside pod and here is the open issue for the same.

After searching on internet for this we found following solution.

Can anybody suggest me a cleaner solution?

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