You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add readiness check for metrics server when using `WithAuthenticationAndAuthorization() #3238
We’ve observed that when using WithAuthenticationAndAuthorization() (with self-signed certs), the metrics server may take a few seconds to become available on Kubernetes 1.33+.
In particular, some Kubebuilder tests started failing against 1.33, where they were still passing in previous versions < 1.33. After debugging, the root cause seems to be a delay related to how Kubernetes 1.33 handles token availability and cert readiness, likely due to changes in the API server behaviour.
It might be nice if controller-runtime could provide a ReadyzCheck for the metrics server. That would help in scenarios using either self-signed or provided certs, by allowing consumers to verify the /metrics endpoint is actually ready (serving over HTTPS and accepting tokens) before probing or testing.
Activity
sbueringer commentedon Jun 28, 2025
@camilamacedo86 Not sure if a controller should be not ready because the metrics server is not up yet.
For reference, we already have something for the webhook server that can be used like this: https://github.com/kubernetes-sigs/cluster-api/blob/1efdb87b22a5e4f05e8d56e473732438572b9276/main.go#L436 (see also
controller-runtime/pkg/webhook/server.go
Line 273 in 3b0b995
sbueringer commentedon Jun 28, 2025
But maybe it's fine to implement something similar for the metrics server so folks can ensure it actually works?
@alvaroaleman Do you have an opinion on this?
k8s-triage-robot commentedon Sep 26, 2025
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
lifecycle/staleis appliedlifecycle/stalewas applied,lifecycle/rottenis appliedlifecycle/rottenwas applied, the issue is closedYou can:
/remove-lifecycle stale/closePlease send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
camilamacedo86 commentedon Sep 26, 2025
/remove-lifecycle stale
k8s-triage-robot commentedon Oct 26, 2025
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
lifecycle/staleis appliedlifecycle/stalewas applied,lifecycle/rottenis appliedlifecycle/rottenwas applied, the issue is closedYou can:
/remove-lifecycle rotten/closePlease send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle rotten
camilamacedo86 commentedon Oct 26, 2025
/remove-lifecycle rotten
k8s-triage-robot commentedon Jan 24, 2026
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
lifecycle/staleis appliedlifecycle/stalewas applied,lifecycle/rottenis appliedlifecycle/rottenwas applied, the issue is closedYou can:
/remove-lifecycle stale/closePlease send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
camilamacedo86 commentedon Jan 25, 2026
/remove-lifecycle stale
k8s-triage-robot commentedon Apr 25, 2026
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
lifecycle/staleis appliedlifecycle/stalewas applied,lifecycle/rottenis appliedlifecycle/rottenwas applied, the issue is closedYou can:
/remove-lifecycle stale/closePlease send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
camilamacedo86 commentedon Apr 25, 2026
/remove-lifecycle rotten
k8s-triage-robot commentedon May 25, 2026
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
lifecycle/staleis appliedlifecycle/stalewas applied,lifecycle/rottenis appliedlifecycle/rottenwas applied, the issue is closedYou can:
/remove-lifecycle rotten/closePlease send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle rotten
camilamacedo86 commentedon May 25, 2026
/remove-lifecycle stale
camilamacedo86 commentedon May 25, 2026
/remove-lifecycle rotten
camilamacedo86 commentedon May 25, 2026
Hi @sbueringer could we please add the frozen label in this one?
sbueringer commentedon May 26, 2026
/remove-lifecycle rotten
/lifecycle frozen