affinity¶
affinity
value enables defining of raw affinity rules.
When defined, it disables/overrides automatic podAntiAffinity rules.
Note
By default affinity
is undefined.
Define custom affinity rules
values.yaml | |
---|---|
In the above example three replicas of application would require to be scheduled on Kubernetes nodes that also host the application with instance name backend-app.
For more examples on custom affinity rules, please read the official documentation.
See also: