What is the environmental planning and basic preparation for building a high availability cluster in Kubernetes simulation production environment
This article shows you how Kubernetes simulates the production environment to build the environmental planning and basic preparation of a high-availability cluster. The content is concise and easy to understand, which will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
1. Machine planning in simulated environment
II. Description of cluster environment
Operating system: CentOS7.7
Kubernetes version: 1.16.2
Docker version: 19.03
Third, cluster master and basic preparation of work nodes
1.。 Configure the hosts file
Sudo cat > > / etc/hosts/etc/rc.d/rc.local & & sudo chmod + x / etc/rc.d/rc.local
5. Shut down the system selinux
Sudo setenforce 0
Sudo sed-I's etc/sysconfig/selinux SelinuxplenforcingAccording to SELINUXAfter
Sudo sed-I's etc/selinux/config SelinuxplenforcingAccording to SELINUXAfter
6. Modify system kernel parameters
Sudo cat > / etc/sysctl.d/k8s.conf