When I deploy k8s cluster and install fannel
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml
An error occurs:The connection to the server raw.githubusercontent.com was refused - did you specify the right host or port?
Reason: the external network is not accessible
Solution:
Check the real IP of raw.githubusercontent.com at https://www.ipaddress.com/ .
sudo vim /etc/hosts
join in
185.199.108.133 raw.githubusercontent.com
run again
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml
You can successfully install fannel
Hope to help you!