Alexandra:
Hi Guyz, How do I install a network plugin such as weave if I cannot acces the weave official docs?
Mohamed Ayman:
Hello @Alexandra
in the exam, the link will be a part of your question
Thanks,
KodeKloud Support
Sparsh Gupta:
Save this as bookmark. This has one-liner weave config, if ever needed.
https://v1-19.docs.kubernetes.io/docs/setup/production-environment/tools/kubeadm/high-availability/
Alexandra:
Thanks a lot!
Krishnaprasad:
Is it this one ?
kubectl apply -f "<https://cloud.weave.works/k8s/net?k8s-version=$(kubectl> version | base64 | tr -d '\n')"
IK:
Yes! And remember to append &env.IPALLOC_RANGE=<_ip_subnet_of_pod_network_>
if you ever have issues with default IP range weave assigns to your pod network overlapping with your node (server) IP range. In such case you want to tell weave to assign a different IP range.
So, say for instance I want weave to assign 10.50.0.0/12 to my pod network, I will do the following:
kubectl apply -f "<https://cloud.weave.works/k8s/net?k8s-version=$(kubectl> version | base64 | tr -d '\n')&env.IPALLOC_RANGE=10.50.0.0/12"