Skip to content

Commit

Permalink
webhook: Increase kubectl wait timeout
Browse files Browse the repository at this point in the history
This is specifically for slow systems where the wait time
can be higher

Signed-off-by: Pradipta Banerjee <pradipta.banerjee@gmail.com>
  • Loading branch information
bpradipt committed Oct 21, 2024
1 parent 20ec0c8 commit b156ce1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/webhook/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b156ce1

Please sign in to comment.