在重启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.