mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/nginx-ingress] Use autoscaling/v1 for hpa (#3418)
This commit is contained in:
committed by
k8s-ci-robot
parent
79feb6ca8f
commit
a23db4997c
@@ -1,5 +1,5 @@
|
||||
name: nginx-ingress
|
||||
version: 0.9.0
|
||||
version: 0.9.1
|
||||
appVersion: 0.10.2
|
||||
description: An nginx Ingress controller that uses ConfigMap to store the nginx configuration.
|
||||
icon: https://upload.wikimedia.org/wikipedia/commons/thumb/c/c5/Nginx_logo.svg/500px-Nginx_logo.svg.png
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{{- if eq .Values.controller.kind "Deployment" }}
|
||||
{{- if .Values.controller.autoscaling.enabled }}
|
||||
apiVersion: autoscaling/v2beta1
|
||||
apiVersion: autoscaling/v1
|
||||
kind: HorizontalPodAutoscaler
|
||||
metadata:
|
||||
labels:
|
||||
@@ -17,10 +17,6 @@ spec:
|
||||
name: {{ template "nginx-ingress.controller.fullname" . }}
|
||||
minReplicas: {{ .Values.controller.autoscaling.minReplicas }}
|
||||
maxReplicas: {{ .Values.controller.autoscaling.maxReplicas }}
|
||||
metrics:
|
||||
- type: Resource
|
||||
resource:
|
||||
name: cpu
|
||||
targetAverageUtilization: {{ .Values.controller.autoscaling.targetAverageUtilization }}
|
||||
targetCPUUtilizationPercentage: {{ .Values.controller.autoscaling.targetCPUUtilizationPercentage }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
@@ -111,7 +111,7 @@ controller:
|
||||
enabled: false
|
||||
# minReplicas: 1
|
||||
# maxReplicas: 11
|
||||
# targetAverageUtilization: 50
|
||||
# targetCPUUtilizationPercentage: 50
|
||||
|
||||
## Override NGINX template
|
||||
customTemplate:
|
||||
|
||||
Reference in New Issue
Block a user