In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-10-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Outline:
I. Environmental preparation
II. Pre-deployment operations
Set up time synchronization of nodes with ntp service
Complete the name resolution of each node through DNS, test the environment host, and replace it with the hosts file.
Configure ssh password free login
Turn off iptables and firewalld services on each node
disable SELinux
Disable Swap devices
Enable iptables bridging and routing forwarding
III. Deploying k8s clusters
deploy Docker
Deploying Kubernetes
Configure Master Node Initialization
Flannel installation master
Node Joining
View on Master
I. Environment Preparation System Host Name ipCentos7.5master4X.5X.44.101Centos7.5node014X.5X.38.116Centos7.5node024X.5X.39.27 II. Pre-deployment operations
Set up time synchronization of nodes with ntp service
download
yum -y install chrony
start
systemctl start chronyd && systemctl enable chronyd
detection
chronyc sources
Complete the name resolution of each node through DNS, test the environment host, and replace it with the hosts file.
hostnamectl set-hostname master
Set node01 and node02 similarly
Configure each node hosts
Configure master configure ssh password free login.
ssh-keygen -t rsa
ssh-copy-id node01
ssh-copy-id node02
If there is a firewalld service or iptables rule, close the iptables and firewalld services of each node.
systemctl stop firewalld && systemctl disable firewalld
iptables -F
disable SELinux
Close Temporary
setenforce 0
permanently closed
/etc/sysconfig/selinux Change SELINUX=disabled
Disable Swap devices
check
swapoff -a
free
Enable iptables bridging and routing forwarding
Each node opens the bridge.
sysctl -a |grep bridge Filter bridge does not exist Use the following command to load br_netfiltermodprobe br_netfiltercat >> /etc/sysctl.d/k8s.conf > /etc/sysctl.confsysctl -p
III. Deploying k8s clusters
deploy Docker
Get yum, install, open.
wget https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo -O /etc/yum.repos.d/docker-ce.repoyum -y install docker-cesystemctl enable docker && systemctl start dockerdocker --version
Deploying Kubernetes
Get yum.
cat > /etc/yum.repos.d/kubernetes.repo
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.