mirror of
https://git.vectorsigma.ru/public/k3s.git
synced 2026-07-29 11:59:41 +00:00
Only echo Waiting for kubelet every 30 seconds
Don't print a message every second while we are waiting for the kubelet to report Ready.
This commit is contained in:
@@ -159,10 +159,14 @@ func validate() error {
|
||||
}
|
||||
|
||||
func configureNode(ctx context.Context, agentConfig *daemonconfig.Agent, nodes v1.NodeInterface) error {
|
||||
count := 0
|
||||
for {
|
||||
node, err := nodes.Get(ctx, agentConfig.NodeName, metav1.GetOptions{})
|
||||
if err != nil {
|
||||
logrus.Infof("Waiting for kubelet to be ready on node %s: %v", agentConfig.NodeName, err)
|
||||
if count%30 == 0 {
|
||||
logrus.Infof("Waiting for kubelet to be ready on node %s: %v", agentConfig.NodeName, err)
|
||||
}
|
||||
count++
|
||||
time.Sleep(1 * time.Second)
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user