From 26c93c7e802beb358abd74aee6074336dba92f3c Mon Sep 17 00:00:00 2001 From: Dharma Bellamkonda Date: Mon, 23 Mar 2020 09:08:44 -0600 Subject: [PATCH] Reduce VPA mutating webhook timeout from 30s to 10s Fixes https://github.com/kubernetes/autoscaler/issues/2762 --- vertical-pod-autoscaler/pkg/admission-controller/config.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/vertical-pod-autoscaler/pkg/admission-controller/config.go b/vertical-pod-autoscaler/pkg/admission-controller/config.go index 1ccf5fa870bd..75bf3acb18b7 100644 --- a/vertical-pod-autoscaler/pkg/admission-controller/config.go +++ b/vertical-pod-autoscaler/pkg/admission-controller/config.go @@ -75,6 +75,7 @@ func selfRegistration(clientset *kubernetes.Clientset, caCert []byte, namespace, RegisterClientConfig.URL = &url } sideEffects := v1beta1.SideEffectClassNone + timeoutSeconds := int32(10) RegisterClientConfig.CABundle = caCert webhookConfig := &v1beta1.MutatingWebhookConfiguration{ ObjectMeta: metav1.ObjectMeta{ @@ -101,8 +102,9 @@ func selfRegistration(clientset *kubernetes.Clientset, caCert []byte, namespace, }, }, }, - ClientConfig: RegisterClientConfig, - SideEffects: &sideEffects, + ClientConfig: RegisterClientConfig, + SideEffects: &sideEffects, + TimeoutSeconds: &timeoutSeconds, }, }, }