跳转到主要内容

k8s-v1.30.3&&rancher-v2.9.1

rancher-v2.9.1对应的版本是k8s-v1.30.3

# 官网下载
curl -LO "https://dl.k8s.io/release/v1.30.3/bin/linux/amd64/kubectl"
curl -LO "https://dl.k8s.io/release/v1.30.3/bin/linux/amd64/kubeadm"
curl -LO "https://dl.k8s.io/release/v1.30.3/bin/linux/amd64/kubelet"

# 镜像加速下载

curl -LO https://qq829.cn/uploads/software/k8s/v1.30.3/kubectl
curl -LO https://qq829.cn/uploads/software/k8s/v1.30.3/kubeadm
curl -LO https://qq829.cn/uploads/software/k8s/v1.30.3/kubelet

# docker-compose
wget qq829.cn/uploads/software/k8s/docker-compose

# cri运行时
wget qq829.cn/uploads/software/k8s/v1.28.0/30.3/cri-dockerd-0.3.4-3.el7.x86_64.rpm
wget qq829.cn/uploads/software/k8s/v1.30.3/crictl-v1.28.0-linux-amd64.tar.gz

# 服务配置文件

wget qq829.cn/uploads/software/k8s/v1.28.0/30.3/10-kubeadm.conf
wget qq829.cn/uploads/software/k8s/v1.28.0/30.3/kubelet.service

culr下载文件技巧

# 手动指定保存的文件名
curl -o kubectl https://qq829.cn/uploads/software/k8s/v1.30.3/kubectl
# 直接使用远程文件的名称来保存文件
curl -O https://qq829.cn/uploads/software/k8s/v1.30.3/kubectl
# 自动重定向
curl -LO https://qq829.cn/uploads/software/k8s/v1.30.3/kubectl


具体安装步骤:https://qq829.cn/book/books/k8s/page/k8s-v1280