In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Today, I will talk to you about how kubeadm deploys a single Master node K8S cluster, which may not be well understood by many people. In order to make you understand better, the editor has summarized the following contents for you. I hope you can get something from this article.
1 Environment
Host NameRoleIPmaster1master110.10.25.149node1node110.10.25.150node2node210.10.25.151
2 kernel tuning
Vim / etc/sysctl.confnet.ipv6.conf.all.disable_ipv6 = 1net.ipv6.conf.default.disable_ipv6 = 1net.ipv6.conf.lo.disable_ipv6 = 1vm.swappiness = 0net.ipv4.neigh.default.gc_stale_time=120net.ipv4.ip_forward = "see details in https://help.aliyun.com/knowledge_detail/39428.htmlnet.ipv4.conf.all.rp_filter=0net.ipv4.conf.default.rp_filter=0net.ipv4.conf.default.arp_announce = 2net" .ipv4.conf.lo.arp _ announce=2net.ipv4.conf.all.arp_announce=2# see details in https://help.aliyun.com/knowledge_detail/41334.htmlnet.ipv4.tcp_max_tw_buckets = 5000net.ipv4.tcp_syncookies = 1net.ipv4.tcp_max_syn_backlog = 1024net.ipv4.tcp_synack_retries = 2kernel.sysrq = 1net.bridge.bridge-nf-call-ip6tables = 1net.bridge.bridge-nf-call-iptables = 1net.bridge.bridge-nf-call-arptables = 1modprobe br_netfiltersysctl-p
3 set file maximum descriptor
Echo "* soft nofile 65536" > > / etc/security/limits.confecho "* hard nofile 65536" > > / etc/security/limits.confecho "* soft nproc 65536" > > / etc/security/limits.confecho "* hard nproc 65536" > > / etc/security/limits.confecho "* soft memlock unlimited" > > / etc/security/limits.confecho "* hard memlock unlimited" > > / etc/security/limits.conf
4 configure yum Feed
Cat / tmp/crontab2.tmpcrontab / tmp/crontab2.tmpsystemctl start ntpdate.servicentpdate-u ntp.api.bz
7 turn off SELinux and firewall
Systemctl stop firewalldsystemctl disable firewalldsetenforce 0sed-I "s/SELINUX=enforcing/SELINUX=disabled/g" / etc/selinux/config
8 turn off the Swap of the system
Swapoff-ayes | cp / etc/fstab / etc/fstab_bakcat / etc/fstab_bak | grep-v swap > / etc/fstab
9 install docker
Yum list docker-ce--showduplicates | sort-r yum install docker-ce-systemctl daemon-reloadsystemctl enable dockersystemctl start docker
10 configure hosts resolution
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4::1 localhost localhost.localdomain localhost6 localhost6.localdomain610.10.25.151 node210.10.25.149 master-110.10.25.150 node1
11 configure node secret-free login
Ssh-keygenssh-copy-id-I ~ / .ssh/id_rsa.pub user name @ 192.168.x.xxx
12 configure ipvs Modul
Cat > / etc/sysconfig/modules/ipvs.modules
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.