我正在遵循kubernetes官方文档在我的集群https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/上安装kubeadm,但当我尝试下载Google Cloud公共签名密钥时得到以下错误:
我正在运行"Ubuntu 20.04.2 LTS“
$ sudo curl -fsSLo /usr/share/keyrings/kubernetes-archive-keyring.gpg https://packages.cloud.google.com/apt/doc/apt-key.gpg
curl: (60) SSL certificate problem: self signed certificate in certificate chain
More details here: https://curl.haxx.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.你能给点建议吗?谢谢
发布于 2021-04-03 00:57:41
出于测试目的,我只是采用了全新的Ubuntu 20.04.2 LTS,并复制了最初的几个步骤。结论-使用curl命令一切正常,我只是能够成功地下载它。
您没有任何代理配置吗?
sudo apt-get install -y apt-transport-https ca-certificates curl
sudo curl -fsSLo /usr/share/keyrings/kubernetes-archive-keyring.gpg https://packages.cloud.google.com/apt/doc/apt-key.gpg
echo "deb [signed-by=/usr/share/keyrings/kubernetes-archive-keyring.gpg] https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee /etc/apt/sources.list.d/kubernetes.list
sudo apt-get update
sudo apt-get install -y kubeadm
sudo kubeadm version
kubeadm version: &version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.5", GitCommit:"6b1d87acf3c8253c123756b9e61dac642678305f", GitTreeState:"clean", BuildDate:"2021-03-18T01:08:27Z", GoVersion:"go1.15.8", Compiler:"gc", Platform:"linux/amd64"}https://stackoverflow.com/questions/66920138
复制相似问题