网络插件尚未就绪:cni config未初始化 [英] network plugin is not ready: cni config uninitialized

查看:3847
本文介绍了网络插件尚未就绪:cni config未初始化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

KubeletNotReady

runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized

我不知道如何准备网络插件

解决方案

在运行kubectl describe node <node_name>时 如果您未初始化cni ,则在条件表中,Ready类型将包含此消息.正确的初始化可以通过安装网络插件来获得.我将为您指出2个最常用的:编织和法兰绒

1)编织

$ export kubever=$(kubectl version | base64 | tr -d '\n')
$ kubectl apply -f "https://cloud.weave.works/k8s/net?k8s-version=$kubever"

执行完这两个命令后,您应该看到状态为就绪"的节点

$ kubectl get nodes

您还可以检查状态

$ kubectl get cs

2)绒布

$ kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/62e44c867a2846fefb68bd5f178daf4da3095ccb/Documentation/kube-flannel.yml

3) Kubernetes文档将说明如何安装其他网络插件.在这篇文章中,每个CNI提供者都有简短的说明.

KubeletNotReady

runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized

I don't know how to make the network plugin ready

解决方案

While you run kubectl describe node <node_name> In the Conditions table, the Ready type will contain this message if you did not initialized cni. Proper initialization can be obtained by installing network addon. I will point you to 2 most used: Weave and Flannel

1) Weave

$ export kubever=$(kubectl version | base64 | tr -d '\n')
$ kubectl apply -f "https://cloud.weave.works/k8s/net?k8s-version=$kubever"

After executing those two commands you should see node in status "Ready"

$ kubectl get nodes

You could also check status

$ kubectl get cs

2) Flannel

$ kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/62e44c867a2846fefb68bd5f178daf4da3095ccb/Documentation/kube-flannel.yml

3) Kubernetes documentation will explain how install other network addons. In this article each CNI provider have a short description.

这篇关于网络插件尚未就绪:cni config未初始化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆