k8s kubelet日志报...“ err=“failed to parse kubelet flag: unknown flag: --network-plugin“问题解决梳理

1.问题描述

在k8s master get nodes时,报如下错误

命令:

kubectl get nodes

......
E0408 15:31:50.400954 23612 memcache.go:265] couldn't get current server API group list: Get "https://192.168.10.236:6443/api?timeout=20s": dial tcp 192.168.10.236:6443: connect: connection refused
......

查看kubelet服务状态,发现服务处于loaded状态,输入如下信息:

命令:

systemctl status kubelet

......
...Unit kubelet.service entered failed state.
...kubelet.service failed.
......

 查看kubelet日志,有如下报错

命令:

journalctl -xefu kubelet

......
Oct 13 16:00:15 master kubelet[27951]: E0408 16:00:15.786948 27951 run.go:74] "command failed" err="failed to parse kubelet flag: unknown flag: --network-plugin"
......

2.原因分析

根据日志初步分析,是cni网络模块出了问题,kubelet重启后,导致启动网络插件的命令无法执行。

进一步在m

你可能感兴趣的:(kubernetes(k8s),kubernetes,kubelet,java,network-plugin)