标签:enforce 防火墙 center for highlight doc cer text 分配
1,主机分配
角色 | 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 |
1. 系统初始化 关闭防火墙: # systemctl stop firewalld # systemctl disable firewalld 关闭selinux: # setenforce 0 # 临时 # sed -i ‘s/enforcing/disabled/‘ /etc/selinux/config # 永久 关闭swap: # swapoff -a # 临时 # vim /etc/fstab # 永久 同步系统时间: # ntpdate time.windows.com 添加hosts: # vim /etc/hosts 192.168.31.63 k8s-master1 192.168.31.64 k8s-master2 192.168.31.65 k8s-node1 192.168.31.66 k8s-node2 修改主机名: hostnamectl set-hostname k8s-master1
标签:enforce 防火墙 center for highlight doc cer text 分配
原文地址:https://www.cnblogs.com/k8s-pod/p/13169794.html