centos7使用kubeadm安装kubernetes集群

参考资料:官方文档

hostnamectl --static set-hostname k8s15

vi /etc/hosts

192.168.56.15 k8s15

192.168.56.16 k8s16

192.168.56.17 k8s17

cd /etc/sysconfig/network-scripts/

vi ifcfg-enp0s3

vi ifcfg-enp0s8

systemctl restart network

ping www.baidu.com

ssh-keygen -t rsa

ssh-copy-id root@k8s16

修改/etc/selinux/config 文件
将SELINUX=enforcing改为SELINUX=disabled
重启机器即可

猜你喜欢

转载自www.cnblogs.com/Netsharp/p/10802030.html