- Unable to update cni config: No networks found in /etc/cni/net.d
join master 节点 报错,执行以下命令,重试
cat >> /usr/lib/systemd/system/kubelet.service.d/10-kubeadm.conf << EOF
Environment="KUBELET_NETWORK_ARGS=--network-plugin=cni --cni-conf-dir=/etc/cni/ --cni-bin-dir=/opt/cni/bin"
EOF
- The connection to the server raw.githubusercontent.com was refused – did you specify the right host or port?
部署网卡报错
[root@hadoop102 kevin]# kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml
The connection to the server raw.githubusercontent.com was refused - did you specify the right host or port?
解决方式:
在http://ip.tool.chinaz.com/ 查询真实ip
raw.githubusercontent.com –> 185.199.108.133
执行以下命令
cat >> /etc/hosts << EOF
185.199.108.133 raw.githubusercontent.com
EOF
重新执行
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml
https://www.kubernetes.org.cn/k8s
http://docs.kubernetes.org.cn/
版权声明:本文为kaili_0230原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。