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{
"rps": "200",
"cpu": "80",
"memory": "70",
"concurrency": "10",
}
Functions ¶
func SetAutoScaler ¶
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.
Click to show internal directories.
Click to hide internal directories.