HPA: autoscaling/v2beta1 deprecated, bump apiVersion to v2 for defaultBackend (#9731)
This commit is contained in:
parent
b87645fe53
commit
e2d076c4fc
3 changed files with 3 additions and 1 deletions
|
@ -456,6 +456,7 @@ Kubernetes: `>=1.20.0-0`
|
||||||
| controller.watchIngressWithoutClass | bool | `false` | Process Ingress objects without ingressClass annotation/ingressClassName field Overrides value for --watch-ingress-without-class flag of the controller binary Defaults to false |
|
| controller.watchIngressWithoutClass | bool | `false` | Process Ingress objects without ingressClass annotation/ingressClassName field Overrides value for --watch-ingress-without-class flag of the controller binary Defaults to false |
|
||||||
| defaultBackend.affinity | object | `{}` | |
|
| defaultBackend.affinity | object | `{}` | |
|
||||||
| defaultBackend.autoscaling.annotations | object | `{}` | |
|
| defaultBackend.autoscaling.annotations | object | `{}` | |
|
||||||
|
| defaultBackend.autoscaling.apiVersion | string | `"autoscaling/v2"` | |
|
||||||
| defaultBackend.autoscaling.enabled | bool | `false` | |
|
| defaultBackend.autoscaling.enabled | bool | `false` | |
|
||||||
| defaultBackend.autoscaling.maxReplicas | int | `2` | |
|
| defaultBackend.autoscaling.maxReplicas | int | `2` | |
|
||||||
| defaultBackend.autoscaling.minReplicas | int | `1` | |
|
| defaultBackend.autoscaling.minReplicas | int | `1` | |
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{{- if and .Values.defaultBackend.enabled .Values.defaultBackend.autoscaling.enabled }}
|
{{- if and .Values.defaultBackend.enabled .Values.defaultBackend.autoscaling.enabled }}
|
||||||
apiVersion: autoscaling/v2beta1
|
apiVersion: {{ .Values.defaultBackend.autoscaling.apiVersion }}
|
||||||
kind: HorizontalPodAutoscaler
|
kind: HorizontalPodAutoscaler
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
|
|
|
@ -827,6 +827,7 @@ defaultBackend:
|
||||||
# emptyDir: {}
|
# emptyDir: {}
|
||||||
|
|
||||||
autoscaling:
|
autoscaling:
|
||||||
|
apiVersion: autoscaling/v2
|
||||||
annotations: {}
|
annotations: {}
|
||||||
enabled: false
|
enabled: false
|
||||||
minReplicas: 1
|
minReplicas: 1
|
||||||
|
|
Loading…
Reference in a new issue