Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
2 changes: 1 addition & 1 deletion charts/nginx-ingress/templates/controller-hpa.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and .Values.controller.autoscaling.enabled (eq .Values.controller.kind "deployment") (.Capabilities.APIVersions.Has "autoscaling/v2") -}}
{{- if and .Values.controller.autoscaling.enabled .Values.controller.autoscaling.create (eq .Values.controller.kind "deployment") (.Capabilities.APIVersions.Has "autoscaling/v2") -}}
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
Expand Down
2 changes: 2 additions & 0 deletions charts/nginx-ingress/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2093,6 +2093,7 @@
"terminationGracePeriodSeconds": 30,
"autoscaling": {
"enabled": false,
"create": true,
"annotations": {},
"minReplicas": 1,
"maxReplicas": 3,
Expand Down Expand Up @@ -2733,6 +2734,7 @@
"terminationGracePeriodSeconds": 30,
"autoscaling": {
"enabled": false,
"create": true,
"annotations": {},
"minReplicas": 1,
"maxReplicas": 3,
Expand Down
2 changes: 2 additions & 0 deletions charts/nginx-ingress/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ controller:
autoscaling:
## Enables HorizontalPodAutoscaling.
enabled: false
## Create the HorizontalPodAutoscaler resource. This can be set to false to manage the HPA externally.
create: true
## The annotations of the Ingress Controller HorizontalPodAutoscaler.
annotations: {}
## Minimum number of replicas for the HPA.
Expand Down
Loading
Loading