英文:
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 << 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?
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论