Documentation ¶
Overview ¶
Package podautoscaler contains logic for autoscaling number of pods based on metrics observed.
Index ¶
Constants ¶
View Source
const ( HpaCustomMetricsTargetAnnotationName = "alpha/target.custom-metrics.podautoscaler.kubernetes.io" HpaCustomMetricsStatusAnnotationName = "alpha/status.custom-metrics.podautoscaler.kubernetes.io" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HorizontalController ¶
type HorizontalController struct {
// contains filtered or unexported fields
}
func NewHorizontalController ¶
func NewHorizontalController(evtNamespacer unversionedcore.EventsGetter, scaleNamespacer unversionedextensions.ScalesGetter, hpaNamespacer unversionedextensions.HorizontalPodAutoscalersGetter, metricsClient metrics.MetricsClient, resyncPeriod time.Duration) *HorizontalController
func (*HorizontalController) Run ¶
func (a *HorizontalController) Run(stopCh <-chan struct{})
Click to show internal directories.
Click to hide internal directories.