open-policy-agent / gatekeeper

🐊 Gatekeeper - Policy Controller for Kubernetes
https://open-policy-agent.github.io/gatekeeper/
Apache License 2.0
3.7k stars 758 forks source link

WebhookConfigurations(mutating and Validating) causing slow pod creation #3405

Closed fogunsanmi-gd closed 3 months ago

fogunsanmi-gd commented 5 months ago

What steps did you take and what happened: I scaled my deployment from 1 replica to 3, and it takes up to 20 seconds before the first pod is created, and same 20 seconds for the second pod to be created, so in total it take 40seconds to scale my deployment from 1 -> 3 replicas

What did you expect to happen: I expect the replica pods to be created almost immediately after scaling

Anything else you would like to add: When i delete both the mutating and validating webhook configs, the issue is solved but obviously the OPA agent is useless without the admission controllers

Environment:

stale[bot] commented 3 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.