Skip to content

Commit

Permalink
Bump HorizontalPodAutoscaler apiVersion to v2
Browse files Browse the repository at this point in the history
Before this, we get a warning when applying the HPA:

    Warning: autoscaling/v2beta1 HorizontalPodAutoscaler is deprecated in v1.22+, unavailable in v1.25+; use autoscaling/v2 HorizontalPodAutoscaler

This also bumps the min version to 1.23.

Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
  • Loading branch information
vdemeester authored and tekton-robot committed Oct 31, 2022
1 parent b7d8693 commit e38d112
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions config/webhook-hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: autoscaling/v2beta1
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: tekton-pipelines-webhook
Expand All @@ -38,4 +38,6 @@ spec:
- type: Resource
resource:
name: cpu
targetAverageUtilization: 100
target:
type: Utilization
averageUtilization: 100
2 changes: 1 addition & 1 deletion docs/enabling-ha.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ kubectl -n tekton-pipelines scale deployment tekton-pipelines-webhook --replicas
You can also modify the [HorizontalPodAutoscaler](./../config/webhook-hpa.yaml) to set a minimum number of replicas:

```yaml
apiVersion: autoscaling/v2beta1
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: tekton-pipelines-webhook
Expand Down

0 comments on commit e38d112

Please sign in to comment.