A policy requiring resource limits blocks Istio-injected pods because the sidecar has no limits
IntermediateTroubleshootingKubernetes admission control and Pod Security
Answer
Likely causes → Mutating webhooks (Istio) run before validating ones; the injected istio-proxy container fails your validation.
Diagnose → kubectl get events shows the container name istio-proxy in the denial.
Fix → Set sidecar resources via the mesh config or pod annotations (sidecar.istio.io/proxyCPULimit), or scope the policy to exclude that container by name with a documented reason.
Prevent → Test policies against fully mutated pods (server-side dry-run: kubectl apply --dry-run=server).
More on Kubernetes admission control and Pod Security
`Error from server: admission webhook "validate.kyverno.svc-fail" denied the request: policy Deployment/prod/api for resource violation: require-run-as-nonroot`BeginnerPods do not appear, but `kubectl apply` of the Deployment succeededBeginner`pods "api-7d9" is forbidden: violates PodSecurity "restricted:latest": allowPrivilegeEscalation != false, unrestricted capabilities, seccompProfile`BeginnerEnabling `enforce=restricted` on a namespace did not evict the existing non-compliant podsBeginner`Error from server (InternalError): Internal error occurred: failed calling webhook "validation.gatekeeper.sh": ... context deadline exceeded` blocks every deployIntermediateKyverno is down and now the whole cluster, including Kyverno's own namespace, cannot be fixed because writes are rejectedAdvanced