generated from kedacore/github-template
-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add replicas.idle to set idleReplicaCount on SO
Signed-off-by: Luca Kuendig <luca.kuendig@bedag.ch>
- Loading branch information
1 parent
2b4accc
commit 55f4b8c
Showing
10 changed files
with
144 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,3 +46,4 @@ autoscaling: | |
http: | ||
minReplicas: 0 | ||
maxReplicas: 10 | ||
idleReplicas: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
apiVersion: keda.sh/v1alpha1 | ||
kind: ScaledObject | ||
metadata: | ||
name: {{ .Name }} | ||
namespace: {{ .Namespace }} | ||
labels: | ||
{{- range $key, $val := .Labels }} | ||
{{ $key }}: {{ $val }} | ||
{{- end }} | ||
spec: | ||
minReplicaCount: {{ .MinReplicas }} | ||
maxReplicaCount: {{ .MaxReplicas }} | ||
idleReplicaCount: {{ .IdleReplicas }} | ||
cooldownPeriod: {{ .CooldownPeriod }} | ||
pollingInterval: 1 | ||
scaleTargetRef: | ||
name: {{ .DeploymentName }} | ||
kind: Deployment | ||
triggers: | ||
- type: external-push | ||
metadata: | ||
scalerAddress: {{ .ScalerAddress }} | ||
host: {{ .Host }} | ||
advanced: | ||
restoreToOriginalReplicaCount: true |