Contents

Kubernetes CNI Weave

Install Weave Net

Weave Net
You can check Weave Net official installation.
1
kubectl apply -f "https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d '\n')"

Weave Net Objects

POD List

1
kubectl -n kube-system get pods | grep weave

DaemonSet

1
kubectl -n kube-system get ds | grep weave

Weave Net IPAM(IP Address Management)

IPAM Types

TypeDescription
DHCPDynamic Host Configuration Protocol
host-localLocalhost

Check Default Gateway of Another Node

1
2
3
4
5
# Structure
kubectl -n <namespace> exec <pod-name> -- <command>

# Example
kubectl -n kube-system exec weave-net-gcjhh -- ip route
1
2
3
4
5
6
Defaulting container name to weave.
Use 'kubectl describe pod/weave-net-gcjhh -n kube-system' to see all of the containers in this pod.
default via 172.17.0.1 dev ens3 
10.32.0.0/12 dev weave proto kernel scope link src 10.38.0.0 
172.17.0.0/16 dev ens3 proto kernel scope link src 172.17.0.45 
172.18.0.0/24 dev docker0 proto kernel scope link src 172.18.0.1 linkdown