一、weave网络插件的默认网段
10.32.0.0/12
二、如何查看weave的启动参数
三、如何安装weave命令
1、下载weave的二进制文件:
(1)首先: 0.80版本: #wget -O /usr/local/bin/weave https://raw.githubusercontent.com/zettio/weave/master/weave 0.70版本 #yum install -y conntrack-tools #wget -O /usr/local/bin/weave https://github.com/zettio/weave/releases/download/v0.7.0/weave (2)然后: #chmod a+x /usr/local/bin/weave
2、
通过weave setup预先将weave相关的容器Image下载到各个节点weave setup
四、weav的相关命令
https://www.cnblogs.com/xiangsikai/p/9900811.html
五、如何安装weave插件
[root@master-binary ~]# vim net.yaml
apiVersion: v1
kind: List
items:
- apiVersion: v1
kind: ServiceAccount
metadata:
name: weave-net
annotations:
cloud.weave.works/launcher-info: |-
{
"original-request": {
"url": "/k8s//v1.16/net.yaml",
"date": "Fri Dec 25 2020 11:59:01 GMT+0000 (UTC)"
},
"email-address": "support@weave.works"
}
labels:
name: weave-net
namespace: kube-system
- apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: weave-net
annotations:
cloud.weave.works/launcher-info: |-
{
"original-request": {
"url": "/k8s//v1.16/net.yaml",
"date": "Fri Dec 25 2020 11:59:01 GMT+0000 (UTC)"
},
"email-address": "support@weave.works"
}
labels:
name: weave-net
rules:
- apiGroups:
- ''
resources:
- pods
- namespaces
- nodes
verbs:
- get
- list
- watch
- apiGroups:
- networking.k8s.io
resources:
- networkpolicies
verbs:
- get
- list
- watch
- apiGroups:
- ''
resources:
- nodes/status
verbs:
- patch
- update
- apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: weave-net
annotations:
cloud.weave.works/launcher-info: |-
{
"original-request": {
"url": "/k8s//v1.16/net.yaml",
"date": "Fri Dec 25 2020 11:59:01 GMT+0000 (UTC)"
},
"email-address": "support@weave.works"
}
labels:
name: weave-net
roleRef:
kind: ClusterRole
name: weave-net
apiGroup: rbac.authorization.k8s.io
subjects:
- kind: ServiceAccount
name: weave-net
namespace: kube-system
- apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: weave-net