helm-charts
helm-charts copied to clipboard
How to deploy the opensearch EKS cluster with multi zone in same region in.
Hi Team,
We want to deploy the EKS cluster with https multi zone in same region.
In helm charts what changes need to be change in values.yaml file. We added the below lines in our config file. node.attr.availabilityzone: ${zone} cluster.routing.allocation.awareness.attributes: zone cluster.routing.allocation.awareness.force.zone.values: ["us-east-2a","us-east-2b","us-east-2c"]
We are not able to see zone info inside the pod.
Please let us know how to add a zone to environment variables.
Please let us know what changes are to do from our side.
Thanks, Anil
moved to opensearch-devops
Move to helm-charts.
[Triage] Hey @ganilmca if I'm not wrong you want to run the OpenSearch in multizone, please try with the following information.
- Make sure your EKS cluster is already on HA, multi zone nodes, consider as
a
andb
. - Run the
kubectl get nodes
to see the exact zone label. - Use the chart
nodeAffinity
settings to restrict the desired nodes.
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- {key: zone, operator: In, values: ["a"]}
-
You can even consider taints and tolerations to restrict on a specific group, but nodeAffinity works better as you dot have to add extra taints and tolerations to the node groups.
-
Having
nodeAffinity
you can now isolate your desired OpenSearch component to specific label node that is running in a specific zone.
@rishabh6788 @bbarani