clusterautoscaler

package
v1.2.37 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildAutoscalerOptions

func BuildAutoscalerOptions(spec *ocm.AutoscalerConfig, prefix string) string

func CreateAutoscalerConfig

func CreateAutoscalerConfig(args *AutoscalerArgs) (*ocm.AutoscalerConfig, error)

func IsAutoscalerSetViaCLI

func IsAutoscalerSetViaCLI(cmd *pflag.FlagSet, prefix string) bool

Types

type AutoscalerArgs

type AutoscalerArgs struct {
	BalanceSimilarNodeGroups    bool
	SkipNodesWithLocalStorage   bool
	LogVerbosity                int
	MaxPodGracePeriod           int
	PodPriorityThreshold        int
	IgnoreDaemonsetsUtilization bool
	MaxNodeProvisionTime        string
	BalancingIgnoredLabels      []string
	ResourceLimits              ResourceLimits
	ScaleDown                   ScaleDownConfig
}

func AddClusterAutoscalerFlags

func AddClusterAutoscalerFlags(cmd *cobra.Command, prefix string) *AutoscalerArgs

func GetAutoscalerOptions

func GetAutoscalerOptions(
	cmd *pflag.FlagSet, prefix string, confirmBeforeAllArgs bool, autoscalerArgs *AutoscalerArgs,
) (*AutoscalerArgs, error)

type ResourceLimits

type ResourceLimits struct {
	MaxNodesTotal int
	Cores         ResourceRange
	Memory        ResourceRange
	GPULimits     []string
}

type ResourceRange

type ResourceRange struct {
	Min int
	Max int
}

type ScaleDownConfig

type ScaleDownConfig struct {
	Enabled              bool
	UnneededTime         string
	UtilizationThreshold float64
	DelayAfterAdd        string
	DelayAfterDelete     string
	DelayAfterFailure    string
}

Jump to

Keyboard shortcuts

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