Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Controller ¶
func NewController ¶
func NewController(opts Options) Controller
type Options ¶
type Options struct { // DryRun=true won't evict Pods for real DryRun bool // MemoryUsageThreshold is the threshold (0-100) above which a Pod is considered // as overusing its memory. MemoryUsageThreshold int // EvictionPause is the delay we wait between two evictions, to prevent removing // too many Pods at once. Else we could more easily have downtimes if Deployments // don't specify a PodDisruptionBudget. EvictionPause time.Duration // MemoryUsageCheckInterval is how often we check the memory usage. // It doesn't need to be too frequent, as we have to wait for the metric-server // to refresh the metrics all the time. MemoryUsageCheckInterval time.Duration }
type PodMetricsInterfaceList ¶
type PodMetricsInterfaceList interface {
List(ctx context.Context, opts metav1.ListOptions) (*metricsv1beta1.PodMetricsList, error)
}
Click to show internal directories.
Click to hide internal directories.