Adding the Flannel Network Plugin
- On the master node, obtain the YAML file of the Flannel network plugin.
1wget https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml --no-check-certificate
- Install the Flannel network plugin on the master node.
1kubectl apply -f kube-flannel.yml
If the network plugin kube-flannel keeps trying to restart, sometimes the restart is normal, and sometimes "CrashLoopBackOff" or "OOMKilled" is displayed, try to resolve the problem by following instructions in Troubleshooting.
Parent topic: Installing Kubernetes