diff --git a/config/webhook-hpa.yaml b/config/webhook-hpa.yaml index 240b4321aa6..5f0ebf000e1 100644 --- a/config/webhook-hpa.yaml +++ b/config/webhook-hpa.yaml @@ -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 @@ -38,4 +38,6 @@ spec: - type: Resource resource: name: cpu - targetAverageUtilization: 100 + target: + type: Utilization + averageUtilization: 100 diff --git a/docs/enabling-ha.md b/docs/enabling-ha.md index 38290f706e3..ba68fc7690a 100644 --- a/docs/enabling-ha.md +++ b/docs/enabling-ha.md @@ -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