sealer
sealer copied to clipboard
support to start kubelet with the --node-ip params
vagrant + virtualbox虚拟环境有nat网卡,kube-init.sh生成配置没有node.ip。会导致kubectl logs xxx无法获取非本机pod的日志。
错误日志: the server could not find the requested resource pods/log。
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.