Skip to content

Files

Latest commit

3954794 · Jul 6, 2021

History

History
This branch is 794 commits behind rabbitmq/cluster-operator:main.

pod-anti-affinity

Pod Anti Affinity Example

This simple pod anti affinity rule will try to assign pods to different nodes according to Assigning Pods to Nodes.

The preferredDuringSchedulingIgnoredDuringExecution type can be replaced by requiredDuringSchedulingIgnoredDuringExecution to require pod separation as in production-ready example.

You can deploy this example like this:

kubectl apply -f rabbitmq.yaml

And once deployed, you can check what defaults were applied like this (spec section is the most important):

kubectl get -o yaml rabbitmqclusters.rabbitmq.com hello-world