Adding the Flannel Network Plug-in
- On the master node, obtain the YAML file of the Flannel network plug-in.
1wget https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml --no-check-certificate
- Install the Flannel network plug-in on the master node.
1kubectl apply -f kube-flannel.yml
If the network plug-in 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 K8s