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