Skip to content

kubernetes repo 源配置在 CentOS 环境

步骤

bash
cat <<EOF > /etc/yum.repos.d/kubernetes.repo
[kubernetes]
name=Kubernetes
baseurl=https://mirrors.aliyun.com/kubernetes/yum/repos/kubernetes-el7-x86_64
enabled=1
gpgcheck=0
EOF
bash
cd /etc/yum.repos.d

# 查看文件:kubernetes.repo
ll

yum clean all && yum makecache

# 检查是否安装成功
yum repolist