参考部署:https://blog.csdn.net/shuaihj/article/details/122963090
下载镜像1:https://newreleases.io/project/github/weaveworks/weave/release/v2.8.1
下载镜像2:https://loongson-cloud-community.github.io/Loongson-Cloud-Community/%E7%A7%BB%E6%A4%8D%E6%89%8B%E5%86%8C/weaveworks-weave/
一、下载所需镜像
所需镜像
image: 'netcorecore/weave-kube:v2.8.1'
image: 'netcorecore/weave-npc:v2.8.1
===
docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/weaveworks/weave-kube:2.8.1
docker tag swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/weaveworks/weave-kube:2.8.1 netcorecore/weave-kube:v2.8.1
docker pull netcorecore/weave-npc:v2.8.1
二、部署weave到k8s集群
wget http://static.corecore.cn/weave.v2.8.1.yaml
[root@k8smaster weaves]# kubectl apply -f weave.v2.8.1.yaml
serviceaccount/weave-net created
clusterrole.rbac.authorization.k8s.io/weave-net created
clusterrolebinding.rbac.authorization.k8s.io/weave-net created
role.rbac.authorization.k8s.io/weave-net created
rolebinding.rbac.authorization.k8s.io/weave-net created
daemonset.apps/weave-net created
[root@k8smaster weaves]# kubectl get pod -A |grep wea
kube-system weave-net-ctt2w 0/2 Init:ErrImagePull 0 4m14s
kube-system weave-net-jbpjw 2/2 Running 1 4m14s
kube-system weave-net-vq545 0/2 Init:ImagePullBackOff 0 4m14s
[root@k8smaster weaves]# kubectl get nodes
NAME STATUS ROLES AGE VERSION
k8smaster Ready master 92m v1.18.0
k8snode1 NotReady <none> 88m v1.18.0
k8snode2 NotReady <none> 88m v1.18.0
现在把镜像拷贝到node节点,让其他节点保持Ready状态。就可以使用了。