← Problem Library
K8s L4 K8S 1354 · 14 min

A cert-manager renewal job stays Pending (webhook-networkpolicy-still-whitelisted-old-apiserver-cidr)

Pods can curl the webhook, yet the control plane cannot because the apiserver now originates from a different CIDR range than the old cluster.

K8sPlatform ReliabilityLevel 4Pro14 min
Scenario

A control-plane migration completes and later certificate renewals begin failing even though the webhook deployment appears healthy from workload tests.

What to check first
  • Identify the primary failure signal in the The Webhook Was Open to Workloads and Closed to the New Control Plane scenario.
  • Separate visible symptoms from the underlying technical dependency.
  • Describe the safest recovery path and the follow-up prevention work.
Checking checklist
  1. Summarize the current impact and the last known change.
  2. Collect direct evidence from logs, runtime state, and configuration before changing anything.
  3. Separate immediate recovery from permanent prevention work.
Recovery and prevention

Test the control-plane source path rather than only pod reachability before editing cert-manager resources.

Questions worth viewing together
What should you verify first when A cert-manager renewal job stays Pending (webhook-networkpolicy-still... appears?

Community-field Kubernetes problem inspired by webhook and NetworkPolicy community cases where the apiserver CIDR changed after control-plane migration. Admission and webhook traffic often comes from a control-plane CIDR your workload probes never exercise.

What usually causes A cert-manager renewal job stays Pending (webhook-networkpolicy-still... in production?

Teams often blame webhook certificates when the apiserver source itself is no longer allowed by NetworkPolicy.

What should you document after resolving A cert-manager renewal job stays Pending (webhook-networkpolicy-still...?

Control-plane migrations should trigger a review of any webhook or admission policy that whitelists source CIDRs.