webhook-example icon indicating copy to clipboard operation
webhook-example copied to clipboard

How to deal with K8s timelimit in 30s ?

Open maffka123 opened this issue 1 year ago • 0 comments

Hi,

I am relatively new to the topic. As far as I understand certManager contacts custom webhook over Kube API which has timelimit of 30 s? Our custom webhook is designed so that it sends a request to the certbot Service (which is located outside of our responsibility) and than it waits until DNS entry is done, before sending 200 back. This takes much more than 30s and because of this (if I understand correctly) certManager sends like 6 requests one after another, which all are not really answered than properly by our webhook. How can I deal with it? If I send 200 right after sending request to the certBot, than certManager immediately sends cleanUp request. Is there a way to send back some "wait for it and check later" response?

maffka123 avatar Dec 02 '24 11:12 maffka123