按照https://gitee.com/openeuler/cloudnative/blob/master/docs/1-%E5%BC%80%E5%8F%91%E6%8C%87%E5%8D%97/k8s%E9%9B%86%E7%BE%A4%E6%9C%AC%E5%9C%B0%E6%B5%8B%E8%AF%95%E8%B0%83%E8%AF%95%E6%96%B9%E6%B3%95.md这个教程搭建k8s+isulad,执行kubeadm init --kubernetes-version v1.19.9 --pod-network-cidr=10.244.0.0/16 --upload-certs --cri-socket=/var/run/isulad.sock时,出现以下问题:
执行systemctl status kubelet,如下所示:
这个是什么原因呢?
Hey liang0510, Welcome to openEuler Community.
All of the projects in openEuler Community are maintained by @openeuler-ci-bot.
That means the developers can comment below every pull request or issue to trigger Bot Commands.
Please follow instructions at https://gitee.com/openeuler/community/blob/master/en/sig-infrastructure/command.md to find the details.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
我用k8s调用isula,显示pod一直是pending状态。看kubelet的日志,全是这样的报错:
E0603 17:34:58.316448 247236 kubelet.go:2187] Container runtime network not ready: NetworkReady=false reason:NetworkPluginNotRead
y message:iSulad: network plugin is not ready: cni config uninitialized
请问是什么原因?
isulad 的配置中是否有配置"network-plugin": "cni"?
可以看下isulad的配置:
# cat /etc/isulad/daemon.json
{
"registry-mirrors": [
"docker.io"
],
"insecure-registries": [
"k8s.gcr.io",
"quay.io",
"hub.oepkgs.net"
],
"pod-sandbox-image": "k8s.gcr.io/pause:3.2",
"network-plugin": "cni",
"cni-bin-dir": "/opt/cni/bin",
"cni-conf-dir": "/etc/cni/net.d",
}
看网上都是1.15的,我用1.20.8也是这种错误
看了很多资料,应该是iSulad的交互协议是websocket导致无法和新的k8s进行交互
@mpv945 我在本地进行了测试,使用1.20.8版本的k8s是可以与isulad通信,并正常部署的,可能不是这个原因,您那边使用的isulad是什么版本,麻烦提供下版本信息
hi, 问题还有吗?
先关闭,后续有问题,重新打开
/close
登录 后才可以发表评论