更多信息可参考:
https://github.com/kubeedge/kubeedge/pull/5513
https://github.com/kubeedge/kubeedge/pull/5514
引入 keadm ctl 命令,支持在边缘查询和重启 pod
当边缘节点离线时,我们无法通过 kubectl 检察边缘节点上的 pod,在 1.17 中可以在边缘节点上通过 keadm ctl get/restart pod [flag] 对 pod 进行查询或重启。
如果需要使用该特性,您需要开启 metaserver 开关。
keadm ctl get pod 的可选参数如下:
[root@centos-2 bin]# keadm ctl get pod -h
Get pods in edge node
Usage:
keadm ctl get pod [flags]
Flags:
-A, --all-namespaces If present, list the requested object(s) across all namespaces. Namespace in current context is ignored even if specified with --namespace
-h, --help help for pod
-n, --namespace string Specify a namespace (default "default")