我想在Ubuntu 18.04上安装Kubernetes 1.15。

huangapple go评论64阅读模式
英文:

I want to install kubernet 1.15 on ubuntu 18.04

问题

我想在 Ubuntu 18.04 上安装 Kubernetes v1.15,但每次运行以下命令时:

apt-get update && apt-get install -y apt-transport-https curl

curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add

sudo apt-add-repository "deb http://apt.kubernetes.io/ kubernetes-xenial main"

sudo apt-get install -qy kubelet=1.13.0-00 kubectl=1.13.0-00 kubeadm=1.13.0-00

它只下载了当前版本.... 有人可以帮助吗?

英文:

I want to install kubernetes v1.15 on ubuntu 18.04 but every time i run the following command :

apt-get update && apt-get install -y apt-transport-https curl

curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add

sudo apt-add-repository "deb http://apt.kubernetes.io/ kubernetes-xenial main"

sudo apt-get install -qy kubelet=1.13.0-00 kubectl=1.13.0-00 kubeadm=1.13.0-00

It downloaded only the current version ....can anyone help ?

答案1

得分: 1

我成功地使用以下命令安装了版本1.15:

获取Kubernetes的GPG密钥:

curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -

添加Kubernetes仓库:

cat << EOF | sudo tee /etc/apt/sources.list.d/kubernetes.list
deb https://apt.kubernetes.io/ kubernetes-xenial main
EOF

更新您的软件包:

sudo apt-get update

然后安装kubelet、kubeadm和kubectl:

sudo apt-get install -y kubelet=1.15.0-00 kubeadm=1.15.0-00 kubectl=1.15.0-00

您还会希望将它们锁定以防止不必要的更新:

sudo apt-mark hold docker-ce kubelet kubeadm kubectl

您可以尝试使用这些命令,然后让我知道是否有效?

英文:

I successfully installed version 1.15 using those commands:

Get the Kubernetes gpg key:

curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -

Add the Kubernetes repository:

cat &lt;&lt; EOF | sudo tee /etc/apt/sources.list.d/kubernetes.list
deb https://apt.kubernetes.io/ kubernetes-xenial main
EOF

Update your packages:

sudo apt-get update

And then install kubelet, kubeadm, and kubectl:

sudo apt-get install -y  kubelet=1.15.0-00 kubeadm=1.15.0-00 kubectl=1.15.0-00

You will also want to hold them to prevent unwanted updates:

sudo apt-mark hold docker-ce kubelet kubeadm kubectl

Can you try using those commands and let me know if its works?

huangapple
  • 本文由 发表于 2020年1月6日 17:14:32
  • 转载请务必保留本文链接:https://go.coder-hub.com/59609380.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定