Redundant Admission Requests during Rolling Update

12/10/2021

When I perform rolling update by updating StatefulSet's pod template spec field, I found out that there are many redundant admission requests sent to the StatefulSet update validating webhook. An admission request is sent to the admission webhook service every second, which results in the webhook gets called every second as well until the rolling update completes.

I compare state of the StatefulSet's fields among different webhook calls, and find out that all the fields are intact except those pointer fields, which are different for each of the webhook calls. Is there a way to prevent the redundant admission requests from reaching the webhook?

-- jtee
kubernetes

0 Answers