2 Respostas
- Mais recentes
- Mais votos
- Mais comentários
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.
respondido há 5 meses
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)
Conteúdo relevante
- AWS OFICIALAtualizada há um ano
- AWS OFICIALAtualizada há um ano
- AWS OFICIALAtualizada há 2 anos
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/