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 failure-domain.beta.kubernetes.io/zone 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?