From c5ab4cda400e1b043f4be7153f2d2983cc8eb9cd Mon Sep 17 00:00:00 2001 From: Pradipta Banerjee Date: Fri, 18 Oct 2024 17:29:28 +0530 Subject: [PATCH] webhook: Increase kubectl wait timeout This is specifically for slow systems where the wait time can be higher Signed-off-by: Pradipta Banerjee --- src/webhook/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webhook/Makefile b/src/webhook/Makefile index fadd1d7b0..207a0db91 100644 --- a/src/webhook/Makefile +++ b/src/webhook/Makefile @@ -129,8 +129,8 @@ deploy-cert-manager: ## Deploy cert-manager for webhook. # Deploy cert-manager kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v1.15.3/cert-manager.yaml # Wait for service to be up - kubectl wait --timeout=30s -n cert-manager endpoints/cert-manager --for=jsonpath='{.subsets[0].addresses[0].ip}' - kubectl wait --timeout=30s -n cert-manager endpoints/cert-manager-webhook --for=jsonpath='{.subsets[0].addresses[0].ip}' + kubectl wait --timeout=90s -n cert-manager endpoints/cert-manager --for=jsonpath='{.subsets[0].addresses[0].ip}' + kubectl wait --timeout=90s -n cert-manager endpoints/cert-manager-webhook --for=jsonpath='{.subsets[0].addresses[0].ip}' # Wait for few seconds for the cert-manager API to be ready # otherwise you'll hit the error "x509: certificate signed by unknown authority" # Best is to use cmctl - https://cert-manager.io/docs/installation/kubectl/#2-optional-wait-for-cert-manager-webhook-to-be-ready