Skip to content

Instantly share code, notes, and snippets.

@zommarin
Created October 22, 2018 11:03
Show Gist options
  • Save zommarin/a7c69c5a5a97c5db65f8d2b922648735 to your computer and use it in GitHub Desktop.
Save zommarin/a7c69c5a5a97c5db65f8d2b922648735 to your computer and use it in GitHub Desktop.
# Anti-affinity for a pod towards itself
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: tier
operator: In
values:
- something
topologyKey: kubernetes.io/hostname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment