2 Answers
- Newest
- Most votes
- Most comments
0
Thanks, EFS is not an option - only EBS. These applications are actually statefulsets but how does that guarantee the 3 pods will be spread accross each AZ ? Unfortunatly I don't have an EKS cluster to test at the moment.
answered 4 months ago
0
Topology spread constraints is a good way to ensure that pods does not start in same zone or same host ( based on the constraints definition) However one approach in the usecase could be use to statefulsets[1].
You are right, if you add topology constraint "topologyKey: "topology.kubernetes.io/zone" it will schedule both the pods in different AZs ( based on AZs defined in the cluster)
Relevant content
- asked 5 months ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
Topolgy constraints uses the EKS provided node labels to identify the AZs of the worker nodes and thus schedules the pod on different AZs. Hope this helps in clarifying. https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/