Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(helm): allow removal of Node & Worker replicas for custom HPA solutions #28762

Merged
merged 13 commits into from
Jun 5, 2024
2 changes: 1 addition & 1 deletion helm/superset/templates/hpa-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

*/}}

{{- if .Values.supersetNode.autoscaling.enabled }}
{{- if .Values.supersetNode.autoscaling.enabled and not .Values.supersetNode.autoscaling.custom }}
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
Expand Down
2 changes: 1 addition & 1 deletion helm/superset/templates/hpa-worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

*/}}

{{- if .Values.supersetWorker.autoscaling.enabled }}
{{- if .Values.supersetWorker.autoscaling.enabled and not .Values.supersetWorker.autoscaling.custom }}
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
Expand Down
2 changes: 2 additions & 0 deletions helm/superset/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ supersetNode:
replicaCount: 1
autoscaling:
enabled: false
custom: false
minReplicas: 1
maxReplicas: 100
targetCPUUtilizationPercentage: 80
Expand Down Expand Up @@ -367,6 +368,7 @@ supersetWorker:
replicaCount: 1
autoscaling:
enabled: false
custom: false
minReplicas: 1
maxReplicas: 100
targetCPUUtilizationPercentage: 80
Expand Down
Loading