k3s/plugin/pkg/scheduler/factory
Justin Santa Barbara f9a6ac077e Ubernetes Lite: Volumes can dictate zone scheduling
For AWS EBS, a volume can only be attached to a node in the same AZ.
The scheduler must therefore detect if a volume is being attached to a
pod, and ensure that the pod is scheduled on a node in the same AZ as
the volume.

So that the scheduler need not query the cloud provider every time, and
to support decoupled operation (e.g. bare metal) we tag the volume with
our placement labels.  This is done automatically by means of an
admission controller on AWS when a PersistentVolume is created backed by
an EBS volume.

Support for tagging GCE PVs will follow.

Pods that specify a volume directly (i.e. without using a
PersistentVolumeClaim) will not currently be scheduled correctly (i.e.
they will be scheduled without zone-awareness).
2015-12-31 12:27:01 -05:00
..
factory.go Ubernetes Lite: Volumes can dictate zone scheduling 2015-12-31 12:27:01 -05:00
factory_test.go Implement multi-scheduler: 2015-12-22 10:49:40 +08:00
plugins.go Ubernetes Lite: Volumes can dictate zone scheduling 2015-12-31 12:27:01 -05:00
plugins_test.go Make copyright ownership statement generic 2015-05-01 17:49:56 -04:00