Kubernetes阿里云YUM更新源k8s国内源
Kubernetes阿里云YUM更新源https://developer.aliyun.com/mirror/kubernetes配置方法CentOS / RHEL / Fedoracat <<EOF > /etc/yum.repos.d/kubernetes.repo[kubernetes]name=Kubernetesbaseurl=https://mirrors.aliyu
·
Kubernetes阿里云YUM更新源
https://developer.aliyun.com/mirror/kubernetes
配置方法
CentOS / RHEL / Fedora
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=1
repo_gpgcheck=1
gpgkey=https://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpg https://mirrors.aliyun.com/kubernetes/yum/doc/rpm-package-key.gpg
EOF
setenforce 0
yum install -y kubelet kubeadm kubectl
systemctl enable kubelet && systemctl start kubelet
ps:
由于官网未开放同步方式, 可能会有索引gpg检查失败的情况,这时请用如下命令安装
yum install -y --nogpgcheck kubelet kubeadm kubectl
Debian / Ubuntu
apt-get update && apt-get install -y apt-transport-https
curl https://mirrors.aliyun.com/kubernetes/apt/doc/apt-key.gpg | apt-key add -
cat <<EOF >/etc/apt/sources.list.d/kubernetes.list
deb https://mirrors.aliyun.com/kubernetes/apt/ kubernetes-xenial main
EOF
apt-get update
apt-get install -y kubelet kubeadm kubectl
更多推荐
已为社区贡献1条内容
所有评论(0)