部署rancher2时踩了个坑
| Rancher | v2.1.6 |
| 用户界面 | v2.1.19 |
| Helm | v2.10.0-rancher5 |
| 主机 | v0.15.0-rancher1-1 |
向集群添加主机时候主机启动报错:
Runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized
google到了解决方法;
sudo mkdir -p /etc/cni/net.d
sudo cat > /etc/cni/net.d/10-flannel.conflist <<EOF
{
"name": "cbr0",
"plugins": [
{
"type": "flannel",
"delegate": {
"hairpinMode": true,
"isDefaultGateway": true
}
},
{
"type": "portmap",
"capabilities": {
"portMappings": true
}
}
]
}
EOF