Skip to content

Commit

Permalink
fix(autoscaler): switch from the deprecated beta version (v2beta2) to…
Browse files Browse the repository at this point in the history
… the GA version (v2) (#10)

The previously used beta version of `HorizontalPodScaler`,
`autoscaling/v2beta2`, has been deprecated and will be removed in
Kubernetes v1.26.

Upgrade to the GA version, `autoscaling/v2`, (available since v1.23) to
be ready for the v1.26 upgrade.

For more details see the [v1.26 deprecations guide][1] as well as
xlts-dev/registry#304.

[1]: https://kubernetes.io/docs/reference/using-api/deprecation-guide/#v1-26
  • Loading branch information
gkalpak authored May 11, 2023
1 parent dc03378 commit c6e6a0b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ and their default values.
| `livenessProbe.failureThreshold` | Min failures for the probe to be considered failed | `3` | [1](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#probe-v1-core) |
| `livenessProbe.successThreshold` | Min successes for the probe to be considered successful | `1` | [1](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#probe-v1-core) |
| `autoscaler.enabled` | Whether to enable the HorizontalPodAutoscaler | `false` | |
| `autoscaler.minReplicas` | Lower limit for the number of replicas when scaling down, overrides `replicaCount` when `autoscaler` is `enabled` | `1` | [1](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#horizontalpodautoscalerspec-v2beta1-autoscaling) |
| `autoscaler.maxReplicas` | Upper limit for the number of replicas when scaling up | `1` | [1](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#horizontalpodautoscalerspec-v2beta1-autoscaling) |
| `autoscaler.minReplicas` | Lower limit for the number of replicas when scaling down, overrides `replicaCount` when `autoscaler` is `enabled` | `1` | [1](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#horizontalpodautoscaler-v2-autoscaling) |
| `autoscaler.maxReplicas` | Upper limit for the number of replicas when scaling up | `1` | [1](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#horizontalpodautoscaler-v2-autoscaling) |
| `autoscaler.metrics` | List of `MetricSpec` objects to trigger scaling | `[]` | [1](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#metricspec-v2beta2-autoscaling) |
| `topologySpreadConstraints` | List of `TopologySpreadConstraint` objects to apply to the pod(s) | `[]` | [1](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#topologyspreadconstraint-v1-core) |

Expand Down
2 changes: 1 addition & 1 deletion charts/verdaccio/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
description: A lightweight, private NPM proxy registry for GKE
name: verdaccio-gke-charts
version: 0.2.8
version: 0.3.0
appVersion: 5.14.0
home: https://xlts-dev.github.io/verdaccio-gke-charts/
icon: https://cdn.verdaccio.dev/logos/default.png
Expand Down
2 changes: 1 addition & 1 deletion charts/verdaccio/templates/autoscaler.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if .Values.autoscaler.enabled }}
apiVersion: autoscaling/v2beta2
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: {{ template "verdaccio.fullname" . }}
Expand Down

0 comments on commit c6e6a0b

Please sign in to comment.