Documentation
¶
Index ¶
Constants ¶
const GroupName = "kubescheduler.config.k8s.io"
GroupName is the group name used in this package
Variables ¶
var (
// AddToScheme is a global function that registers this API group & version to a scheme
AddToScheme = localSchemeBuilder.AddToScheme
)
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}
SchemeGroupVersion is group version used to register these objects
Functions ¶
This section is empty.
Types ¶
type CapacitySchedulingArgs ¶
type CapacitySchedulingArgs struct {
metav1.TypeMeta
// KubeConfigPath is the path of kubeconfig.
KubeConfigPath string
}
CapacitySchedulingArgs defines the scheduling parameters for CapacityScheduling plugin.
func (*CapacitySchedulingArgs) DeepCopy ¶
func (in *CapacitySchedulingArgs) DeepCopy() *CapacitySchedulingArgs
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CapacitySchedulingArgs.
func (*CapacitySchedulingArgs) DeepCopyInto ¶
func (in *CapacitySchedulingArgs) DeepCopyInto(out *CapacitySchedulingArgs)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CapacitySchedulingArgs) DeepCopyObject ¶
func (in *CapacitySchedulingArgs) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CoschedulingArgs ¶
type CoschedulingArgs struct {
metav1.TypeMeta
// PermitWaitingTime is the wait timeout in seconds.
PermitWaitingTimeSeconds int64
// DeniedPGExpirationTimeSeconds is the expiration time of the denied podgroup store.
DeniedPGExpirationTimeSeconds int64
// KubeMaster is the url of api-server
KubeMaster string
// KubeConfigPath for scheduler
KubeConfigPath string
}
CoschedulingArgs defines the parameters for Coscheduling plugin.
func (*CoschedulingArgs) DeepCopy ¶
func (in *CoschedulingArgs) DeepCopy() *CoschedulingArgs
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CoschedulingArgs.
func (*CoschedulingArgs) DeepCopyInto ¶
func (in *CoschedulingArgs) DeepCopyInto(out *CoschedulingArgs)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CoschedulingArgs) DeepCopyObject ¶
func (in *CoschedulingArgs) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type LoadVariationRiskBalancingArgs ¶
type LoadVariationRiskBalancingArgs struct {
metav1.TypeMeta
// Metric Provider to use when using load watcher as a library
MetricProvider MetricProviderSpec
// Address of load watcher service
WatcherAddress string
// Multiplier of standard deviation in risk value
SafeVarianceMargin float64
// Root power of standard deviation in risk value
SafeVarianceSensitivity float64
}
LoadVariationRiskBalancingArgs holds arguments used to configure LoadVariationRiskBalancing plugin.
func (*LoadVariationRiskBalancingArgs) DeepCopy ¶
func (in *LoadVariationRiskBalancingArgs) DeepCopy() *LoadVariationRiskBalancingArgs
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadVariationRiskBalancingArgs.
func (*LoadVariationRiskBalancingArgs) DeepCopyInto ¶
func (in *LoadVariationRiskBalancingArgs) DeepCopyInto(out *LoadVariationRiskBalancingArgs)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LoadVariationRiskBalancingArgs) DeepCopyObject ¶
func (in *LoadVariationRiskBalancingArgs) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MetricProviderSpec ¶
type MetricProviderSpec struct {
// Types of the metric provider
Type MetricProviderType
// The address of the metric provider
Address string
// The authentication token of the metric provider
Token string
}
Denote the spec of the metric provider
func (*MetricProviderSpec) DeepCopy ¶
func (in *MetricProviderSpec) DeepCopy() *MetricProviderSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricProviderSpec.
func (*MetricProviderSpec) DeepCopyInto ¶
func (in *MetricProviderSpec) DeepCopyInto(out *MetricProviderSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MetricProviderType ¶
type MetricProviderType string
MetricProviderType is a "string" type.
const ( KubernetesMetricsServer MetricProviderType = "KubernetesMetricsServer" Prometheus MetricProviderType = "Prometheus" SignalFx MetricProviderType = "SignalFx" )
type NodeResourceTopologyMatchArgs ¶
type NodeResourceTopologyMatchArgs struct {
metav1.TypeMeta
// KubeConfigPath is the path of kubeconfig.
KubeConfigPath string
// MasterOverride is the url of api-server
MasterOverride string
// Namespaces to be considered by NodeResourceTopologyMatch plugin
Namespaces []string
}
NodeResourceTopologyMatchArgs holds arguments used to configure the NodeResourceTopologyMatch plugin
func (*NodeResourceTopologyMatchArgs) DeepCopy ¶
func (in *NodeResourceTopologyMatchArgs) DeepCopy() *NodeResourceTopologyMatchArgs
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeResourceTopologyMatchArgs.
func (*NodeResourceTopologyMatchArgs) DeepCopyInto ¶
func (in *NodeResourceTopologyMatchArgs) DeepCopyInto(out *NodeResourceTopologyMatchArgs)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NodeResourceTopologyMatchArgs) DeepCopyObject ¶
func (in *NodeResourceTopologyMatchArgs) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NodeResourcesAllocatableArgs ¶
type NodeResourcesAllocatableArgs struct {
metav1.TypeMeta `json:",inline"`
// Resources to be considered when scoring.
// Allowed weights start from 1.
// An example resource set might include "cpu" (millicores) and "memory" (bytes)
// with weights of 1<<20 and 1 respectfully. That would mean 1 MiB has equivalent
// weight as 1 millicore.
Resources []schedulerconfig.ResourceSpec `json:"resources,omitempty"`
// Whether to prioritize nodes with least or most allocatable resources.
Mode ModeType `json:"mode,omitempty"`
}
NodeResourcesAllocatableArgs holds arguments used to configure NodeResourcesAllocatable plugin.
func (*NodeResourcesAllocatableArgs) DeepCopy ¶
func (in *NodeResourcesAllocatableArgs) DeepCopy() *NodeResourcesAllocatableArgs
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeResourcesAllocatableArgs.
func (*NodeResourcesAllocatableArgs) DeepCopyInto ¶
func (in *NodeResourcesAllocatableArgs) DeepCopyInto(out *NodeResourcesAllocatableArgs)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NodeResourcesAllocatableArgs) DeepCopyObject ¶
func (in *NodeResourcesAllocatableArgs) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TargetLoadPackingArgs ¶
type TargetLoadPackingArgs struct {
metav1.TypeMeta
// Default requests to use for best effort QoS
DefaultRequests v1.ResourceList
// Default requests multiplier for busrtable QoS
DefaultRequestsMultiplier string
// Node target CPU Utilization for bin packing
TargetUtilization int64
// Metric Provider to use when using load watcher as a library
MetricProvider MetricProviderSpec
// Address of load watcher service
WatcherAddress string
}
TargetLoadPackingArgs holds arguments used to configure TargetLoadPacking plugin.
func (*TargetLoadPackingArgs) DeepCopy ¶
func (in *TargetLoadPackingArgs) DeepCopy() *TargetLoadPackingArgs
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TargetLoadPackingArgs.
func (*TargetLoadPackingArgs) DeepCopyInto ¶
func (in *TargetLoadPackingArgs) DeepCopyInto(out *TargetLoadPackingArgs)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TargetLoadPackingArgs) DeepCopyObject ¶
func (in *TargetLoadPackingArgs) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.