v1alpha2

package
v1.67.7 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Descheduler

type Descheduler struct {
	metav1.TypeMeta `json:",inline" yaml:",inline"`
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`

	Spec DeschedulerSpec `json:"spec" yaml:"spec"`
}

Descheduler is a struct containing descheduler policies

type DeschedulerSpec

type DeschedulerSpec struct {
	NodeSelector           string                  `json:"nodeSelector,omitempty" yaml:"nodeSelector,omitempty"`
	NodeLabelSelector      *metav1.LabelSelector   `json:"nodeLabelSelector,omitempty" yaml:"nodeLabelSelector,omitempty"`
	PodLabelSelector       *metav1.LabelSelector   `json:"podLabelSelector,omitempty" yaml:"podLabelSelector,omitempty"`
	NamespaceLabelSelector *metav1.LabelSelector   `json:"namespaceLabelSelector,omitempty" yaml:"namespaceLabelSelector,omitempty"`
	PriorityClassThreshold *PriorityClassThreshold `json:"priorityClassThreshold,omitempty" yaml:"priorityClassThreshold,omitempty"`
	Strategies             Strategies              `json:"strategies" yaml:"strategies"`
}

type HighNodeUtilization

type HighNodeUtilization struct {
	Enabled    bool                   `json:"enabled" yaml:"enabled"`
	Thresholds map[string]interface{} `json:"thresholds,omitempty" yaml:"thresholds,omitempty"`
}

type LowNodeUtilization

type LowNodeUtilization struct {
	Enabled          bool                   `json:"enabled" yaml:"enabled"`
	Thresholds       map[string]interface{} `json:"thresholds,omitempty" yaml:"thresholds,omitempty"`
	TargetThresholds map[string]interface{} `json:"targetThresholds,omitempty" yaml:"targetThresholds,omitempty"`
}

type PriorityClassThreshold

type PriorityClassThreshold struct {
	Name  string `json:"name,omitempty" yaml:"name,omitempty"`
	Value int    `json:"value,omitempty" yaml:"value,omitempty"`
}

type RemoveDuplicates

type RemoveDuplicates struct {
	Enabled bool `json:"enabled" yaml:"enabled"`
}

type RemovePodsViolatingInterPodAntiAffinity

type RemovePodsViolatingInterPodAntiAffinity struct {
	Enabled bool `json:"enabled" yaml:"enabled"`
}

type RemovePodsViolatingNodeAffinity

type RemovePodsViolatingNodeAffinity struct {
	Enabled          bool     `json:"enabled" yaml:"enabled"`
	NodeAffinityType []string `json:"nodeAffinityType,omitempty" yaml:"nodeAffinityType,omitempty"`
}

type Strategies

type Strategies struct {
	LowNodeUtilization                      *LowNodeUtilization                      `json:"lowNodeUtilization,omitempty" yaml:"lowNodeUtilization,omitempty"`
	HighNodeUtilization                     *HighNodeUtilization                     `json:"highNodeUtilization,omitempty" yaml:"highNodeUtilization,omitempty"`
	RemoveDuplicates                        *RemoveDuplicates                        `json:"removeDuplicates,omitempty" yaml:"removeDuplicates,omitempty"`
	RemovePodsViolatingNodeAffinity         *RemovePodsViolatingNodeAffinity         `json:"removePodsViolatingNodeAffinity,omitempty" yaml:"removePodsViolatingNodeAffinity,omitempty"`
	RemovePodsViolatingInterPodAntiAffinity *RemovePodsViolatingInterPodAntiAffinity `json:"removePodsViolatingInterPodAntiAffinity,omitempty" yaml:"removePodsViolatingInterPodAntiAffinity,omitempty"`
}

Jump to

Keyboard shortcuts

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