[stable/nginx-ingress] Use autoscaling/v1 for hpa (#3418)

This commit is contained in:
Александр Костырев
2018-01-29 12:27:33 -08:00
committed by k8s-ci-robot
parent 79feb6ca8f
commit a23db4997c
3 changed files with 4 additions and 8 deletions
+1 -1
View File
@@ -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 }}
+1 -1
View File
@@ -111,7 +111,7 @@ controller:
enabled: false
# minReplicas: 1
# maxReplicas: 11
# targetAverageUtilization: 50
# targetCPUUtilizationPercentage: 50
## Override NGINX template
customTemplate: