cd /etc/yum.repos.d/
gzip *
vim k8s.repo
[centos-base]
name=centos-base
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/$releasever/os/$basearch/
enabled=1
gpgcheck=0

[centos-extras]
name=centos-extras
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/$releasever/extras/$basearch/
enabled=1
gpgcheck=0

[docker]
name=docker
baseurl=https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/centos/7Server/x86_64/stable/
enabled=1
gpgcheck=0

[kubernetes]
name=docker
baseurl=https://mirrors.tuna.tsinghua.edu.cn/kubernetes/yum/repos/kubernetes-el7-x86_64/
enabled=1
gpgcheck=0

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐