mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-20 07:56:02 +00:00
kube-proxy: list available endpoints in /statusz
This commit is contained in:
@@ -486,7 +486,11 @@ func serveMetrics(ctx context.Context, bindAddress string, proxyMode kubeproxyco
|
||||
}
|
||||
|
||||
if utilfeature.DefaultFeatureGate.Enabled(zpagesfeatures.ComponentStatusz) {
|
||||
statusz.Install(proxyMux, kubeProxy, statusz.NewRegistry(compatibility.DefaultBuildEffectiveVersion()))
|
||||
reg := statusz.NewRegistry(
|
||||
compatibility.DefaultBuildEffectiveVersion(),
|
||||
statusz.WithListedPaths(proxyMux.ListedPaths()),
|
||||
)
|
||||
statusz.Install(proxyMux, kubeProxy, reg)
|
||||
}
|
||||
|
||||
fn := func() {
|
||||
|
||||
Reference in New Issue
Block a user