Kubernets deployment

1. Environment preparation
1. The system is centos7.4 1708, close the firewall, SELinux, NetworkManager.
2. Prepare several servers, one of which is a master node and the other is a node node. The IP address master node is 192.168.4.61, the node node is the same network segment address
3, and the time synchronization service is configured, so the server synchronizes the time server of Alibaba Cloud with the address ntp1.aliyun.com. Pay attention to check whether the time zone of each server is Shanghai time zone. If the time zone is wrong, use timedatectl set-timezone Asina Shanghai, then use ntpdate ntp1.aliyun.com to synchronize the time.
4. Configure the host name of each server and write the address resolution files of all servers.
5. K8s requires the swap partition to be closed, permanently closed is the partition configuration of the fstab file, and temporary shutdown is swapoff -a
6. Due to the communication between the internal containers of this container management platform, the communication between internal pods will need to pass through Firewall, so we have to create a configuration file to allow data to pass.

Published 73 original articles · praised 4 · 20,000+ views

Guess you like

Origin blog.csdn.net/qq_27592485/article/details/105503502