Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

Logical redux of Node+Pod affinity+anti-affinity #1

Open
timothysc opened this issue Mar 13, 2017 · 0 comments
Open

Logical redux of Node+Pod affinity+anti-affinity #1

timothysc opened this issue Mar 13, 2017 · 0 comments

Comments

@timothysc
Copy link

As of today affinity and anti-affinity specification are very explicit, and lengthy to specify.

Node Affinity Examples:
https://github.com/kubernetes/kubernetes/blob/master/plugin/pkg/scheduler/algorithm/priorities/node_affinity_test.go

Inter-Pod Affinity Examples:
https://github.com/kubernetes/kubernetes/blob/master/plugin/pkg/scheduler/algorithm/priorities/interpod_affinity_test.go

imo ~90% users can typically understand affinity in terms of "groupby" and "spreadby".

groupby (type(pod,node), key=value)

  • pod.groupby(node, rack=rack1)
  • pod.spreadby(pod, type=highiops)

There is more to this, but hopefully the gist is there.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants