解决K8s下载yaml超时失败问题


1、下载recommended.yaml

[root@k8s-master ~]# wget https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0-beta8/aio/deploy/recommended.yaml
--2021-08-30 14:57:16-- https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0-beta8/aio/deploy/recommended.yaml
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.108.133, 185.199.109.133, 185.199.110.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.108.133|:443...

注:由于网络原因,可能出现超时,下载失败现象

 

解决方案:

1)通过http://ipAddress.com,找到对应的ip地址

 

 

 

2)将查询raw.githubusercontent.com对应的IP加入hosts解析

 

 

2、再次下载recommended.yaml

[root@k8s-master ~]# wget https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0-beta8/aio/deploy/recommended.yaml
--2021-08-30 14:20:53--  https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0-beta8/aio/deploy/recommended.yaml
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.108.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.108.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 7568 (7.4K) [text/plain] Saving to: ‘recommended.yaml’ 100%[=======================================================================================================================================================================>] 7,568 --.-K/s in 0.002s 2021-08-30 14:20:53 (3.16 MB/s) - ‘recommended.yaml’ saved [7568/7568]


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM