Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions helm/templates/hypertrace-collector/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,23 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.hpa.behavior.enabled }}
behavior:
scaleUp:
policies:
- type: {{ .Values.hpa.behavior.scaleUp.policy.type }}
value: {{ .Values.hpa.behavior.scaleUp.policy.value }}
periodSeconds: {{ .Values.hpa.behavior.scaleUp.policy.periodSeconds }}
selectPolicy: {{ .Values.hpa.behavior.scaleUp.selectPolicy }}
stabilizationWindowSeconds: {{ .Values.hpa.behavior.scaleUp.stabilizationWindowSeconds }}
scaleDown:
policies:
- type: {{ .Values.hpa.behavior.scaleDown.policy.type }}
value: {{ .Values.hpa.behavior.scaleDown.policy.value }}
periodSeconds: {{ .Values.hpa.behavior.scaleDown.policy.periodSeconds }}
selectPolicy: {{ .Values.hpa.behavior.scaleDown.selectPolicy }}
stabilizationWindowSeconds: {{ .Values.hpa.behavior.scaleDown.selectPolicy }}
{{- end }}
minReplicas: {{ int .Values.hpa.minReplicas }}
maxReplicas: {{ int .Values.hpa.maxReplicas }}
scaleTargetRef:
Expand Down
16 changes: 16 additions & 0 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,22 @@ hpa:
minReplicas: 2
maxReplicas: 5
targetCPUUtilizationPercentage: 80
behavior:
enabled: false

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not enable here?

scaleUp:
policy:
type: Pods
value: 2
periodSeconds: 60
selectPolicy: Max
stabilizationWindowSeconds: 0
scaleDown:
policy:
type: Pods
value: 1
periodSeconds: 600
selectPolicy: Min
stabilizationWindowSeconds: 600

podmonitor:
enabled: false
Expand Down