openkruise / kruise

Automated management of large-scale applications on Kubernetes (incubating project under CNCF)
https://openkruise.io
Other
4.67k stars 767 forks source link

[feature request] support disable pod readiness change before inplace-update #1761

Open furykerry opened 1 month ago

furykerry commented 1 month ago

when utilizing inplace-update to implement hot-update of pod, it is not desirable to keep pod ready during inplace-update. However current cloneset and advance statefulset will enforce pod has InplaceUpdateReady readinessgate, and set the readiness gate to false before inplace-update.

What would you like to be added:

  1. make pod readiness injection setting configurable, preferably using pod lifecycle setting of cloneset and advance statefulset

Why is this needed:

zmberg commented 1 month ago

Sort out, unify KruisePodReady , PodInplaceUpdate , lifecycle.preUpdate.markpodnotready logic