我在部署k8s集群安裝fannel 時候
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml
出現(xiàn)報錯:The connection to the server raw.githubusercontent.com was refused - did you specify the right host or port?
原因:外網(wǎng)不可訪問
解決辦法:
在https://www.ipaddress.com/查詢raw.githubusercontent.com的真實IP。
sudo vim /etc/hosts
加入
185.199.108.133 raw.githubusercontent.com
再次運行
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml
即可成功安裝fannel
文章來源:http://www.zghlxwxcb.cn/news/detail-681258.html
希望對各位有所幫助!文章來源地址http://www.zghlxwxcb.cn/news/detail-681258.html
到了這里,關于解決:The connection to the server raw.githubusercontent.com was refused - did you specify the right ho的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!