File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 1- {{- if and .Values.controller.autoscaling.enabled (or (eq .Values.controller.kind "deployment") (eq .Values.controller.kind "statefulset")) (.Capabilities.APIVersions.Has "autoscaling/v2") -}}
1+ {{- if and .Values.controller.autoscaling.enabled .Values.controller.autoscaling.create (or (eq .Values.controller.kind "deployment") (eq .Values.controller.kind "statefulset")) (.Capabilities.APIVersions.Has "autoscaling/v2") -}}
22apiVersion : autoscaling/v2
33kind : HorizontalPodAutoscaler
44metadata :
Original file line number Diff line number Diff line change 20932093 "terminationGracePeriodSeconds" : 30 ,
20942094 "autoscaling" : {
20952095 "enabled" : false ,
2096+ "create" : true ,
20962097 "annotations" : {},
20972098 "minReplicas" : 1 ,
20982099 "maxReplicas" : 3 ,
27332734 "terminationGracePeriodSeconds" : 30 ,
27342735 "autoscaling" : {
27352736 "enabled" : false ,
2737+ "create" : true ,
27362738 "annotations" : {},
27372739 "minReplicas" : 1 ,
27382740 "maxReplicas" : 3 ,
Original file line number Diff line number Diff line change @@ -243,6 +243,8 @@ controller:
243243 autoscaling :
244244 # # Enables HorizontalPodAutoscaling.
245245 enabled : false
246+ # # Create the HorizontalPodAutoscaler resource. This can be set to false to manage the HPA externally.
247+ create : true
246248 # # The annotations of the Ingress Controller HorizontalPodAutoscaler.
247249 annotations : {}
248250 # # Minimum number of replicas for the HPA.
You can’t perform that action at this time.
0 commit comments