Merge pull request #26531 from gmarek/cidrs
Automatic merge from submit-queue
AllocateOrOccupyCIDR returs quickly
Fix #26511.
AllocateOrOccupy is called before adding a Node to NCs cache. It turns out that sending an update to API server can take too long which will make NC think that given Node does not exist and all Pods from it will be removed.
The fix is to move the long part of the call (updating NodeSpec) to a separate go-routine. To prevent overloading the server and huge number of retries we limit the number of concurrent Update calls.
cc @zmerlynn @davidopp
Showing
Please
register
or
sign in
to comment