在重启kubelet时,提示重启不了,报错如下:
[/etc/systemd/system/kubelet.service:11] Missing ‘=’.
[/etc/systemd/system/kubelet.service:10] Trailing garbage, ignoring
使用
systemctl unmask kubelet.service
然后就可以正常启动了。
学习
mask is a stronger version of disable. Using disable all symlinks of the specified unit file are removed. If using mask the units will be linked to /dev/null. This will be displayed if you check e.g. by systemctl status halt.service. The advantage of mask is to prevent any kind of activation, even manual.
本文介绍了解决kubelet服务无法重启的问题,通过使用systemctl unmask kubelet.service命令解决了kubelet重启失败的情况。

被折叠的 条评论
为什么被折叠?



