detect local cluster states

This commit is contained in:
2026-03-29 22:26:54 +08:00
parent ecceff225f
commit 03a5e5bedb
7 changed files with 524 additions and 16 deletions

View File

@@ -1,12 +1,11 @@
package node
import (
"context"
"context"
"k8s.io/klog/v2"
system "undecided.project/monok8s/pkg/system"
)
func RestartKubelet(context.Context, *NodeContext) error {
klog.Info("restart_kubelet: TODO implement rc-service kubelet restart")
return nil
func StartKubelet(ctx context.Context, n *NodeContext) error {
return system.EnsureServiceRunning(ctx, n.SystemRunner, "kubelet")
}