二进制搭建一个完整的K8S集群部署文档
0. 服务器规划 角色 IP 组件 k8s-master1 192.168.31.63 kube-apiserver kube-controller-manager kube-scheduler etcd k8s-master2 192.168.31.64 kube-apiserver kube-controller-manager kube-scheduler k8s-node1 192.168.31.65 kubelet kube-proxy docker etcd k8s-node2 192.168.31.66 kubelet kube-proxy docker etcd Load Balancer(Master) 192.168.31.61 192.168.31.60 (VIP) Nginx L4 Load Balancer(Backup) 192.168.31.62 Nginx L4 一 - 系统 初始化 关闭防火墙: # systemctl stop firewalld # systemctl disable firewalld 关闭 selinux: # setenforce 0 # 临时 # sed -i 's/enforcing/disabled/' /etc/selinux/config # 永久 关闭 swap: # swapoff -a # 临时 # vim