Created
May 12, 2021 11:56
-
-
Save jdato/9adfa6a9c525c8f03ebe894db2a424c3 to your computer and use it in GitHub Desktop.
Kubernetes anti affinity example
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
affinity: | |
podAntiAffinity: | |
preferredDuringSchedulingIgnoredDuringExecution: | |
- weight: 100 | |
podAffinityTerm: | |
labelSelector: | |
matchExpressions: | |
- key: app | |
operator: In | |
values: | |
- my-application | |
topologyKey: kubernetes.io/hostname |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment