Skip to content

Commit c579a32

Browse files
authored
Merge pull request kubernetes#86005 from grnhse/raise-kubelet-node-status-verbosity
Fix kubelet_node_status log spam
2 parents 1793038 + 6b8b849 commit c579a32

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/kubelet/kubelet_node_status.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,17 +286,17 @@ func (kl *Kubelet) initialNode(ctx context.Context) (*v1.Node, error) {
286286
node.Annotations = make(map[string]string)
287287
}
288288

289-
klog.Infof("Setting node annotation to enable volume controller attach/detach")
289+
klog.V(2).Infof("Setting node annotation to enable volume controller attach/detach")
290290
node.Annotations[volutil.ControllerManagedAttachAnnotation] = "true"
291291
} else {
292-
klog.Infof("Controller attach/detach is disabled for this node; Kubelet will attach and detach volumes")
292+
klog.V(2).Infof("Controller attach/detach is disabled for this node; Kubelet will attach and detach volumes")
293293
}
294294

295295
if kl.keepTerminatedPodVolumes {
296296
if node.Annotations == nil {
297297
node.Annotations = make(map[string]string)
298298
}
299-
klog.Infof("Setting node annotation to keep pod volumes of terminated pods attached to the node")
299+
klog.V(2).Infof("Setting node annotation to keep pod volumes of terminated pods attached to the node")
300300
node.Annotations[volutil.KeepTerminatedPodVolumesAnnotation] = "true"
301301
}
302302

0 commit comments

Comments
 (0)