Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CPUPressureEvictionOptions ¶ added in v0.3.0
CPUPressureEvictionOptions is the options of CPUPressureEviction
func NewCPUPressureEvictionOptions ¶ added in v0.3.0
func NewCPUPressureEvictionOptions() *CPUPressureEvictionOptions
NewCPUPressureEvictionOptions returns a new CPUPressureEvictionOptions
func (*CPUPressureEvictionOptions) AddFlags ¶ added in v0.3.0
func (o *CPUPressureEvictionOptions) AddFlags(fss *cliflag.NamedFlagSets)
AddFlags parses the flags to CPUPressureEvictionOptions
func (*CPUPressureEvictionOptions) ApplyTo ¶ added in v0.3.0
func (o *CPUPressureEvictionOptions) ApplyTo(c *evictionconfig.CPUPressureEvictionConfiguration) error
ApplyTo applies CPUPressureEvictionOptions to CPUPressureEvictionConfiguration
type EvictionOptions ¶ added in v0.3.0
type EvictionOptions struct { *ReclaimedResourcesEvictionOptions *MemoryPressureEvictionOptions *CPUPressureEvictionOptions }
func NewEvictionOptions ¶ added in v0.3.0
func NewEvictionOptions() *EvictionOptions
func (*EvictionOptions) AddFlags ¶ added in v0.3.0
func (o *EvictionOptions) AddFlags(fss *cliflag.NamedFlagSets)
func (*EvictionOptions) ApplyTo ¶ added in v0.3.0
func (o *EvictionOptions) ApplyTo(c *evictionconfig.EvictionConfiguration) error
ApplyTo fills up config with options
func (*EvictionOptions) Config ¶ added in v0.3.0
func (o *EvictionOptions) Config() (*evictionconfig.EvictionConfiguration, error)
type GenericEvictionOptions ¶
type GenericEvictionOptions struct { InnerPlugins []string // ConditionTransitionPeriod is duration the eviction manager has to wait before transitioning out of a condition. ConditionTransitionPeriod time.Duration // EvictionManagerSyncPeriod is the interval duration that eviction manager fetches information from registered plugins EvictionManagerSyncPeriod time.Duration // those two variables are used to filter out eviction-free pods EvictionSkippedAnnotationKeys []string EvictionSkippedLabelKeys []string // EvictionBurst limit the burst eviction counts EvictionBurst int // PodKiller specify the pod killer implementation PodKiller string // StrictAuthentication means whether to authenticate plugins strictly StrictAuthentication bool // PodMetricLabels defines the pod labels to be added into metric selector list. PodMetricLabels []string }
GenericEvictionOptions holds the configurations for eviction manager.
func NewGenericEvictionOptions ¶
func NewGenericEvictionOptions() *GenericEvictionOptions
NewGenericEvictionOptions creates a new Options with a default config.
func (*GenericEvictionOptions) AddFlags ¶
func (o *GenericEvictionOptions) AddFlags(fss *cliflag.NamedFlagSets)
AddFlags adds flags to the specified FlagSet.
func (*GenericEvictionOptions) ApplyTo ¶
func (o *GenericEvictionOptions) ApplyTo(c *evictionconfig.GenericEvictionConfiguration) error
ApplyTo fills up config with options
func (*GenericEvictionOptions) Config ¶
func (o *GenericEvictionOptions) Config() (*evictionconfig.GenericEvictionConfiguration, error)
type MemoryPressureEvictionOptions ¶ added in v0.3.0
type MemoryPressureEvictionOptions struct { RSSOveruseEvictionFilter string SystemPressureSyncPeriod int SystemPressureCoolDownPeriod int WorkloadPath string MemPressureSomeThreshold int MemPressureFullThreshold int MemPressureDuration int }
MemoryPressureEvictionOptions is the options of MemoryPressureEviction
func NewMemoryPressureEvictionOptions ¶ added in v0.3.0
func NewMemoryPressureEvictionOptions() *MemoryPressureEvictionOptions
NewMemoryPressureEvictionOptions returns a new MemoryPressureEvictionOptions
func (*MemoryPressureEvictionOptions) AddFlags ¶ added in v0.3.0
func (o *MemoryPressureEvictionOptions) AddFlags(fss *cliflag.NamedFlagSets)
AddFlags parses the flags to MemoryPressureEvictionOptions
func (*MemoryPressureEvictionOptions) ApplyTo ¶ added in v0.3.0
func (o *MemoryPressureEvictionOptions) ApplyTo(c *eviction.MemoryPressureEvictionConfiguration) error
ApplyTo applies MemoryPressureEvictionOptions to MemoryPressureEvictionConfiguration
type ReclaimedResourcesEvictionOptions ¶ added in v0.3.0
type ReclaimedResourcesEvictionOptions struct {
SkipZeroQuantityResourceNames []string
}
func NewReclaimedResourcesEvictionOptions ¶ added in v0.3.0
func NewReclaimedResourcesEvictionOptions() *ReclaimedResourcesEvictionOptions
func (*ReclaimedResourcesEvictionOptions) AddFlags ¶ added in v0.3.0
func (o *ReclaimedResourcesEvictionOptions) AddFlags(fss *cliflag.NamedFlagSets)
func (*ReclaimedResourcesEvictionOptions) ApplyTo ¶ added in v0.3.0
func (o *ReclaimedResourcesEvictionOptions) ApplyTo(c *eviction.ReclaimedResourcesEvictionConfiguration) error