Merge pull request #7404 from dokku/k3s-http-scale-to-zero
Correctly handle scale to zero with the Keda http addon
This commit is contained in:
@@ -669,6 +669,14 @@ func getAutoscaling(input GetAutoscalingInput) (ProcessAutoscaling, error) {
|
||||
httpTrigger.Metadata["concurrency_target_value"] = "100"
|
||||
}
|
||||
|
||||
triggers = append(triggers, ProcessAutoscalingTrigger{
|
||||
Name: trigger.Name,
|
||||
Type: "external-push",
|
||||
Metadata: map[string]string{
|
||||
"httpScaledObject": fmt.Sprintf("%s-%s", input.AppName, input.ProcessType),
|
||||
"scalerAddress": "keda-add-ons-http-external-scaler.keda:9090",
|
||||
},
|
||||
})
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
@@ -120,7 +120,7 @@ var HelmCharts = []HelmChart{
|
||||
Namespace: "keda",
|
||||
ReleaseName: "keda",
|
||||
RepoURL: "https://kedacore.github.io/charts",
|
||||
Version: "2.13.1",
|
||||
Version: "2.16.0",
|
||||
},
|
||||
{
|
||||
ChartPath: "keda-add-ons-http",
|
||||
|
||||
Reference in New Issue
Block a user