Skip to content

2026-11-02: cert-manager-config failed once on an "EOF" from the cert-manager webhook

Kind: reference (incident report)

Severity: warning · Status: resolved · Resolved by: Flux's next reconcile; investigated by the operator agent · Duration: not recorded (one failed reconcile at 10:59:22 UTC; the next was due at ~11:09; the earliest success on record is 18:48:44) · Taskbase task: #2356

Summary

On hetzner-mgmt, one reconcile of the Kustomization flux-system/cert-manager-config failed. The API server's call to the cert-manager validating webhook returned EOF during the server-side dry run of ClusterIssuer/letsencrypt-prod. Nothing in Git had changed for cert-manager, nothing was applied, and the webhook admitted every later request. The Kustomization recovered without any action. The operator agent found no fault left to fix and made no write to the cluster.

Impact

  • Services: cert-manager-config (the two ClusterIssuers) was not Ready from 10:59:22 until a later reconcile. cert-manager itself, its webhook and both ClusterIssuers kept running unchanged. The Kustomization has no dependents.
  • Users: none noticed. Both ClusterIssuers have been Ready=True without a break since 2026-07-02, so issuing certificates was unaffected.
  • Data: none.
  • Duration: not recorded; see Open questions. The failure was one webhook call: the API server's failed-call counter for this webhook reached 1 and stayed there.

Timeline

All times UTC, 2026-11-02 unless stated.

Time Event Source
11-01 18:44:07 cd1d1264 merged: removes the nightgain database volume (Terraform and components/nightgain); nothing for cert-manager git show --stat cd1d1264
10:59:22 Detected: cert-manager-config ReconciliationFailed, failed calling webhook "webhook.cert-manager.io": ... Post "https://cert-manager-webhook.cert-manager.svc:443/validate?timeout=30s": EOF kustomize-controller event, Taskbase #2356
11:00 apiserver_admission_webhook_rejection_count{name="webhook.cert-manager.io",error_type="calling_webhook_error",rejection_code="503",operation="UPDATE"} first appears, value 1 Prometheus
~11:09 Next periodic reconcile due (interval 10m, no retryInterval) Kustomization spec
18:48:44 Earliest successful cert-manager-config reconcile still in the kustomize-controller log kubectl logs
11-03 05:03:50 cert-manager-config Ready=True, applied main@sha1:cd1d1264 Kustomization conditions
11-03 ~05:10 Resolved: server-side dry run of both ClusterIssuers through the webhook passes; counter still 1 kubectl apply --dry-run=server, Prometheus

Root cause

An EOF from the API server's webhook client means it reached the webhook and the connection was closed before an HTTP response came back. That is unlike connection refused, no route to host or no endpoints, which mean no connection was made. The webhook's failurePolicy is Fail, so the API server rejected the dry run with a 503, and kustomize-controller reported the reconcile as failed.

Nothing on record explains the closed connection:

  • The failing revision cd1d1264 was only the repository HEAD at a routine reconcile, and it changed nothing for cert-manager. The cert-manager release has been v1.21.3 (Helm revision 4) since 10-27.
  • Both webhook pods (10.244.2.37 on worker-1, 10.244.3.186 on worker-3) were Ready in the cert-manager-webhook EndpointSlice for the whole of 10:30–11:30. Neither restarted then: the last restart was on 10-31 at 01:23:45, exit 0.
  • The webhook logs have nothing on 11-02. Their serving-certificate renewals were at 10-31 22:33 and 10-31 01:23, not near 10:59.
  • No node changed Ready. CPU pressure on every node stayed flat at 0.04–0.22 s/s, the webhook pods used ~0.5 mCPU and 22–23 MiB, no kube-system pod restarted, and Cilium reported no drops.
  • Across the 7 days of 10-27 to 11-03 this was the only failed call to the webhook.

The most likely mechanism is a race on a reused connection: the API server sends a request on a keep-alive connection just as the webhook server closes it for being idle. The record doesn't show that directly; see Open questions.

What the agent did

The failure fits no section of the ops runbook. Its Triage order sends it to Generic Flux freeze, and the read-only checks below follow it, along with the webhook checks drafted in #2257. Every command was read-only, and no write was made to the cluster. The runbook now covers this failure:

2257 added Admission webhook unreachable during a node disruption

and #2360 added A one-off EOF to it.

  1. flux get kustomizations -A, flux get helmreleases -A: cert-manager-config Ready=True at main@sha1:cd1d1264. Nothing else was not Ready except metallb-config, briefly "Reconciliation in progress", which was Ready on the next look.
  2. kubectl -n flux-system get events --field-selector involvedObject.name=cert-manager-config: only ReconciliationSucceeded in the last hour (events older than 1 h have expired).
  3. helm history cert-manager -n cert-manager: revision 4, cert-manager-v1.21.3, deployed since 10-27.
  4. git show --stat cd1d1264, git log -- components/cert-manager cluster/hetzner-mgmt/cert-manager*: the revision touched only nightgain; the last cert-manager change was 017585b8 on 10-31 (health check timeouts).
  5. kubectl -n cert-manager get pods -o wide, get endpointslices -l kubernetes.io/service-name=cert-manager-webhook, pod lastState, and webhook logs: as in Root cause.
  6. kubectl -n flux-system logs deploy/kustomize-controller: begins at 18:44, so the 10:59 failure and the next reconciles are no longer in it.
  7. Prometheus (port-forward to monitoring-kube-prometheus-prometheus): the apiserver_admission_webhook_rejection_count, kube_pod_status_ready, kube_endpointslice_endpoints, kube_node_status_condition, node CPU and node_pressure_cpu_waiting_seconds_total, container CPU and memory of the webhook pods, kube_pod_container_status_restarts_total in kube-system, and cilium_drop_count_total series, as in Root cause.
  8. Alertmanager (port-forward to monitoring-kube-prometheus-alertmanager, GET /api/v2/alerts): no alert for cert-manager, Flux or a webhook.
  9. kubectl kustomize components/cert-manager/config | kubectl apply --dry-run=server --server-side --field-manager=kustomize-controller -f -: both ClusterIssuers serverside-applied (server dry run), exit 0, so the webhook admits them now. flux diff kustomization cert-manager-config --path ./components/cert-manager/config: no difference, exit 0.
  10. Taskbase #2360: runbook follow-up (below).
  11. This report, in pull request #1125 (closed unmerged; it reached main through task #2426).

Resolution and verification

  • flux get kustomizations -A: cert-manager-config Ready=True, Healthy=True, lastAppliedRevision main@sha1:cd1d1264e8203ba83482fbf11142cda454ac5af9; it has reconciled every 10 minutes since.
  • kubectl get clusterissuer: letsencrypt-prod and letsencrypt-staging Ready=True (ACMEAccountRegistered).
  • The server-side dry run in step 9 passes through the webhook, and the API server's failed-call counter for webhook.cert-manager.io is still 1.
  • Rollback: not applicable. The revision did not change cert-manager, no version changed and the failed dry run applied nothing, so there is nothing to roll back or forward.

Follow-ups

  • 2360 (done): added the EOF variant to the runbook's admission-webhook section, as

    A one-off EOF, and a check that tells a one-off from a pattern.

References

Open questions

  • When the Kustomization was Ready again. Events last an hour, the kustomize-controller log starts at 18:44, and Prometheus does not scrape the Flux controllers. The webhook counter staying at 1 shows no later dry run failed on the webhook. It doesn't prove that the 11:09 reconcile succeeded.
  • Whether the closed connection was a keep-alive race, a TLS handshake ending early, or something on the path. The webhook logs only at info level, and nothing else records one connection.
  • Taskbase opens a post-merge failure task for one failed reconcile and leaves it open after Flux recovers. ADR 0018 auto-resolves alerts so that "transient alerts would cost an Opus run each to find nothing", but deploy-failure tasks don't close that way. Whether they should is a Taskbase design question for the owner.