CNI Weave in the Kubernetes Cluster
$ kubectl apply -f "<https://cloud.weave.works/k8s/net?k8s-version=$>(kubectl version | base64 | tr -d '\\\\n')"
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
$ kubectl get pods -n kube-system
NAME READY STATUS RESTARTS AGE
coredns-66bff467f8-894jf 1/1 Running 0 52m
coredns-66bff467f8-nck5f 1/1 Running 0 52m
etcd-controlplane 1/1 Running 0 52m
kube-apiserver-controlplane 1/1 Running 0 52m
kube-controller-manager-controlplane 1/1 Running 0 52m
kube-keepalived-vip-mbr7d 1/1 Running 0 52m
kube-proxy-p2mld 1/1 Running 0 52m
kube-proxy-vjcwp 1/1 Running 0 52m
kube-scheduler-controlplane 1/1 Running 0 52m
weave-net-jgr8x 2/2 Running 0 45m
weave-net-tb9tz 2/2 Running 0 45m
$ kubectl logs weave-net-tb9tz weave -n kube-system
$ kubectl run test --image=busybox --command -- sleep 4500
pod/test created
$ kubectl exec test -- ip route
default via 10.244.1.1 dev eth0