Skip to content

Commit

Permalink
add idleReplicaCount for non trigger scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
dor-sendblocks committed Aug 20, 2024
1 parent 10ff0f4 commit e3749b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions application/templates/scaledobject-sb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ spec:
cooldownPeriod: {{ required "Undefined cooldownPeriod for ScaledObject" .Values.scaledObject.cooldownPeriod }}
minReplicaCount: {{ required "Undefined minReplicaCount for ScaledObject" .Values.scaledObject.minReplicaCount }}
maxReplicaCount: {{ required "Undefined maxReplicaCount for ScaledObject" .Values.scaledObject.maxReplicaCount }}
{{- if (not (eq .Values.scaledObject.idleReplicaCount nil)) }}
idleReplicaCount: {{ .Values.scaledObject.idleReplicaCount }}
{{- end }}
{{- $minReplicaCount := .Values.scaledObject.minReplicaCount }}
{{- with .Values.scaledObject.fallback }}
fallback:
Expand Down
1 change: 1 addition & 0 deletions application/values-sb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ scaledObject:
cooldownPeriod: 300
minReplicaCount: 1
maxReplicaCount: 5
idleReplicaCount: 0
fallback:
failureThreshold: 3
replicas: 2
Expand Down

0 comments on commit e3749b3

Please sign in to comment.