sealer icon indicating copy to clipboard operation
sealer copied to clipboard

support to start kubelet with the --node-ip params

Open ningpengtao-coder opened this issue 2 years ago • 1 comments

vagrant + virtualbox虚拟环境有nat网卡,kube-init.sh生成配置没有node.ip。会导致kubectl logs xxx无法获取非本机pod的日志。

错误日志: the server could not find the requested resource pods/log。

ningpengtao-coder avatar May 27 '22 06:05 ningpengtao-coder

same issue from https://github.com/sealerio/sealer/issues/1452

Kubelet can't register node to APIServer in my offline machines. Because kubelet can't get node ip by node name.(ref: https://github.com/kubernetes/kubernetes/blob/v1.21.12/pkg/kubelet/nodestatus/setters.go#L226)

I need to add the node name into the /etc/hosts manually,may be adding the --node-ip when start kubelet is more simple and useful.

allencloud avatar Jun 03 '22 03:06 allencloud