Let say I have a cluster with 10 worker nodes and the application is randomly deployed to them. I have a namespace X, have 20 instances of nodejs that want to connect to MySQL Group Replication via MySQL Router.
I want to deploy 1 instance of MySQL Router to every node that has at least 1 of my nodejs application. Is this logic support with the k8s default rule?
Ex:
Using Inter-pod affinity :
this pod should (or, in the case of anti-affinity, should not) run in an X if that X is already running one or more pods that meet rule Y.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.