Last active
February 15, 2021 08:23
-
-
Save gpr/d5a3187b722103621802668157080475 to your computer and use it in GitHub Desktop.
[Node affinity based on hostname] #kubernetes #pods
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: | |
nodeAffinity: | |
requiredDuringSchedulingIgnoredDuringExecution: | |
nodeSelectorTerms: | |
- matchExpressions: | |
- key: kubernetes.io/hostname | |
operator: In | |
values: | |
- node_hostname |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment