-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pod anti affinity rule by default
Right now, the Kubernetes scheduler can deploy replicas of the same service on the same node. This is not desirable for HA. Also, it is impossible for the user to specify any kind of affinity rules for the pods. This PR adds the ability to configure an affinity spec in the config. Also, it adds by default an anti-affinity rule to make sure that the Kubernetes scheduler is doing its best to schedule different replicas for a service to different nodes.
- Loading branch information
Showing
2 changed files
with
50 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters