Is there anyway I can tell Kuberbetes how to schedule the replicas in the statefulset? For example, I have nodes divided into 3 different availability zones (AZ). I have labeled these nodes accordingly. Now I want K8s to put 1 replica in each AZ based on node label. Thanks
Take a look at the docs on affinity and anti-affinity: Assigning Pods to Nodes - Kubernetes I think it’ll cover what your trying to do