安装kubernetes

参考 https://www.jianshu.com/p/70efa1b853f5

192.168.85.14 master

192.168.85.16 node1

192.168.85.17 node2

curl -o CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

 

cat <<EOF > /etc/yum.repos.d/kubernetes.repo
[kubernetes]
name=Kubernetes
baseurl=http://mirrors.aliyun.com/kubernetes/yum/repos/kubernetes-el7-x86_64
enabled=1
gpgcheck=0
repo_gpgcheck=0
gpgkey=http://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpg
        http://mirrors.aliyun.com/kubernetes/yum/doc/rpm-package-key.gpg
EOF
curl -o docker-ce.repo https://download.docker.com/linux/centos/docker-ce.repo
yum clean all  
# yum makecache  
# yum repolist

 

 

https://www.vultr.com/docs/deploy-kubernetes-with-kubeadm-on-centos-7

 

 

systemctl stop firewalld

 https://yq.aliyun.com/articles/656601

systemctl disable firewalld
Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
sed -i 's/enforcing/disabled/' /etc/selinux/config
swapoff -a

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值