centos7下k8s安装
总阅读 次
文章目录
由于条件所限,俺们只能在虚拟机上来搭建k8s,关于使用虚拟机创建服务器的过程之前已经讲过:这里,此处我们准备了4台服务器用来搭建,如下:
Service name | IP | OS | Master/Node | service |
---|---|---|---|---|
K8s-master1 | 192.168.56.113 | Centos7 | master | kube-apiserver,kube-controller-manager,kube-scheduler,etcd |
K8s-master2 | 192.168.56.116 | Centos7 | master | kube-apiserver,kube-controller-manager,kube-scheduler |
K8s-node1 | 192.168.56.114 | Centos7 | node | kubelet,kube-proxy,docker,flannel,etcd |
K8s-node2 | 192.168.56.115 | Centos7 | node | kubelet,kube-proxy,docker,flannel,etcd |
1.关闭防火墙,并设置开机关闭
systemctl stop firewalld.service
systemctl disable firewalld.service
hostnamectl set-hostname *