service

package
v1.4.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2016 License: Apache-2.0 Imports: 69 Imported by: 0

Documentation

Overview

Package service contains the cmd/k8sm-scheduler glue code

Index

Constants

View Source
const (
	SCHEDULER_SERVICE_NAME = "k8sm-scheduler"
)

Variables

This section is empty.

Functions

func StaticPodValidator added in v1.2.0

func StaticPodValidator(
	defaultContainerCPULimit resources.CPUShares,
	defaultContainerMemLimit resources.MegaBytes,
	accumCPU, accumMem *float64,
) podutil.FilterFunc

StaticPodValidator discards a pod if we can't calculate resource limits for it.

Types

type SchedulerServer

type SchedulerServer struct {
	// contains filtered or unexported fields
}

func NewSchedulerServer

func NewSchedulerServer() *SchedulerServer

NewSchedulerServer creates a new SchedulerServer with default parameters

func (*SchedulerServer) AddHyperkubeFlags

func (s *SchedulerServer) AddHyperkubeFlags(fs *pflag.FlagSet)

func (*SchedulerServer) AddStandaloneFlags

func (s *SchedulerServer) AddStandaloneFlags(fs *pflag.FlagSet)

func (*SchedulerServer) Run

func (s *SchedulerServer) Run(hks hyperkube.Interface, _ []string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL