autoscale

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KnativeMetricKey          = "autoscaling.knative.dev/metric"
	KnativeAutoscaleClassKey  = "autoscaling.knative.dev/class"
	KnativeAutoscaleTargetKey = "autoscaling.knative.dev/target"
	AutoScalerSubString       = "autoscaling"
)

Variables

View Source
var KPAMetrics = []string{"rps", "concurrency"}
View Source
var TargetDefaultValues = map[string]string{
	// contains filtered or unexported fields
}

Functions

func SetAutoScaler

func SetAutoScaler(capp cappv1alpha1.Capp, defaults map[string]string) map[string]string

SetAutoScaler takes a Capp and a Knative Service and sets the autoscaler annotations based on the Capp's ScaleMetric. Returns a map of the autoscaler annotations that were set.

Types

This section is empty.

Jump to

Keyboard shortcuts

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