mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 23:47:50 +00:00
New scheduler API
This commit adds a Binding object. The idea is that schedulers can write these to cause pods to be asssigned to hosts. I'll provide an implementation along with a rudimentary scheduler plugin. This continues k8s' tradition of phrasing all APIs as RESTful handlers.
This commit is contained in:
@@ -122,6 +122,7 @@ func (m *Master) init(cloud cloudprovider.Interface, podInfoGetter client.PodInf
|
||||
"replicationControllers": registry.NewControllerRegistryStorage(m.controllerRegistry, m.podRegistry),
|
||||
"services": registry.MakeServiceRegistryStorage(m.serviceRegistry, cloud, m.minionRegistry),
|
||||
"minions": registry.MakeMinionRegistryStorage(m.minionRegistry),
|
||||
"bindings": registry.MakeBindingStorage(m.podRegistry),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user