解決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