Skip to content

Commit 4b3481f

Browse files
committed
feat: list available endpoints in /statusz for kubelet
1 parent 1e04b17 commit 4b3481f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

pkg/kubelet/server/server.go

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,15 @@ func (s *Server) InstallAuthRequiredHandlers() {
576576

577577
if utilfeature.DefaultFeatureGate.Enabled(zpagesfeatures.ComponentStatusz) {
578578
s.addMetricsBucketMatcher("statusz")
579-
statusz.Install(s.restfulCont, ComponentKubelet, statusz.NewRegistry(compatibility.DefaultBuildEffectiveVersion()))
579+
statusz.Install(s.restfulCont, ComponentKubelet, statusz.NewRegistry(
580+
compatibility.DefaultBuildEffectiveVersion(),
581+
statusz.WithListedPaths([]string{
582+
healthz.DefaultHealthzPath,
583+
metricsPath,
584+
statsPath,
585+
podsPath,
586+
}),
587+
))
580588
}
581589

582590
if utilfeature.DefaultFeatureGate.Enabled(zpagesfeatures.ComponentFlagz) {

0 commit comments

Comments
 (0)