package scheduler
import "k8s.io/kubernetes/plugin/pkg/scheduler"
Index ¶
Types ¶
type Binder ¶
Binder knows how to write a binding.
type Config ¶
type Config struct { MinionLister scheduler.MinionLister Algorithm scheduler.Scheduler Binder Binder // NextPod should be a function that blocks until the next pod // is available. We don't use a channel for this, because scheduling // a pod may take some amount of time and we don't want pods to get // stale while they sit in a channel. NextPod func() *api.Pod // Error is called if there is an error. It is passed the pod in // question, and the error Error func(*api.Pod, error) }
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
Scheduler watches for new unscheduled pods. It attempts to find minions that they fit on and writes bindings back to the api server.
func New ¶
New returns a new scheduler.
func (*Scheduler) Run ¶
func (s *Scheduler) Run()
Run begins watching and scheduling. It starts a goroutine and returns immediately.
Source Files ¶
scheduler.go
Directories ¶
Path | Synopsis |
---|---|
plugin/pkg/scheduler/factory | Package factory can set up a scheduler. |
- Version
- v0.5.5
- Published
- Dec 2, 2014
- Platform
- darwin/amd64
- Imports
- 5 packages
- Last checked
- 7 seconds ago –
Tools for package owners.