In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-28 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.