I have 6 instances running on AWS with 2 instances on each availability zone, so I have 6 hosts in my rancher Dashboard, with labels: az:us-west-2a(key:value) - 2 instances az:us-west-ab(key:value) - 2 instances az:us-west-2c(key:value) - 2 instances
My use case is, I am running a service with 3 containers and I want to schedule it in such a way that at least one container should run on each availability zone i.e.
one container should run on one of the instance having label az:us-west-2a(key:value)
one container should run on one of the instance having label az:us-west-2b(key:value)
one container should run on one of the instance having label az:us-west-2c(key:value)
You can make sure that not all 3 containers are scheduled onto the same host, but with our existing scheduling rules, I can’t think of a way to distribute between the 3 zones.
You could create an issue for Github for this use case.