Get the App
SLTechnology News&Howtos  ›  Servers  › 

What is the environmental planning and basic preparation for building a high availability cluster in Kubernetes simulation production environment

Shulou Source: shulou.com Published: 2022-05-31 20:41:26 10月06日 Update

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

Tags: Time system cluster environment service file machine foundation preparation planning server configuration environmental planning building height production content skills version directory knowledge Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Microsoft Redmi vpn macOS