How to deploy statefulset in EKS with more than one availability zone ?

0
  • My EKS cluster has three nodes. When I deploy my cluster with two availbility zone (ex us-west-1a, us-west-1b), one node is deployed in us-west-1a and another two nodes are deployed in us-west-1b.
  • I try to deploy statefulset that has 3 replicas and each pod has its own PVC. Because anti-affinity rule is 'hard', 3 pods are deployed in different node.
  • When I scale down all my instance then scale up thm, nodes are not deployed to same avaialblity zone. So, pod in statefulset cannot mount PV because PV is in different availbility zone from pod.
  1. Is there any method to deploy node in same availability zone when scaling down and up ?
  2. If not, is there any limitation that statefulset cannot be deploy across more than one avaialbility zone ?
hauk
질문됨 한 달 전145회 조회
1개 답변
0

Follow the steps outlined in the How do I create and troubleshoot topology aware volume provisioning that uses an EBS CSI driver in Amazon EKS knowledge center article to configure topology aware volume provisioning with the EBS CSI driver.

If you're using Karpenter, refer to the Scaling Kubernetes with Karpenter: Advanced Scheduling with Pod Affinity and Volume Topology Awareness blog post for detailed guidance on configuring topology aware volume provisioning.

This blog post explains how to leverage Karpenter's advanced scheduling features, including Pod Affinity and Volume Topology Awareness, to optimize your Kubernetes cluster's performance and resource utilization.

profile pictureAWS
답변함 한 달 전
profile picture
전문가
검토됨 한 달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠