wget
wget命令用来从指定的URL下载文件。
无法建立 SSL 连接
这是因为 wget 在使用 HTTPS 协议时,默认会去验证网站的证书,而这个证书验证经常会失败。加上 --no-check-certificate
选项,就能排除掉这个错误。
添加 --no-check-certificate
:
wget --no-check-certificate https://raw.githubusercontent.com/kubernetes/ingress-nginx/nginx-0.30.0/deploy/static/mandatory.yaml