detect local cluster states
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user