In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
2025-11-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Role
IP role operating system remarks 192.168.10.210masterCentOS 7haproxyde keepalived master 192.168.10.211masterCentOS 7haproxyparente keepalived standby 192.168.10.212masterCentOS 7haproxyparce keepalived standby 192.168.10.213nodeCentOS 7 only as nodes
Host preparation:
1. Install the necessary software and upgrade all softwar
Yum-y install vim-enhanced wget curl net-tools conntrack-tools bind-utils socat ipvsadm ipsetyum-y update
two。 Close selinux
Sed-I-- sed-I-I
3. Turn off unnecessary services
Systemctl disable auditdsystemctl disable postfixsystemctl disable irqbalancesystemctl disable remote-fssystemctl disable tunedsystemctl disable rhel-configuresystemctl disable firewalld
4. Install kernel-lt (kernel 4.4.178)
Rpm-- import https://www.elrepo.org/RPM-GPG-KEY-elrepo.orgyum-y install https://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpmyum-- enablerepo=elrepo-kernel install kernel-lt-ygrub2-set-default 0grub2-mkconfig-o / etc/grub2.cfg
5. Optimize the kernel
Cat > > / etc/sysctl.conf / etc/security/limits.conf / etc/rc.localchmod + x / etc/rc.localswapoff-a
8. Install docker
Yum-y install dockercurl-sSL https://get.daocloud.io/daotools/set_mirror.sh | sh-s http://e2a6d434.m.daocloud.iosed-I's etc/docker/daemon.jsonservice docker start chkconfig docker on
9. The kernel loads ipvs_rr, ipvs_wrr, ipvs_sh modules
Cat / dev/null 2 > & 1 if [$?-eq 0]; then / sbin/modprobe\ ${kernel_module} fidoneEOFchmod + x / etc/sysconfig/modules/ipvs.modulessh / etc/sysconfig/modules/ipvs.modules
10. Install kubeadm, kubelet, kubectl
Mkdir / etc/yum.repos.d/bak & & cp-rf / etc/yum.repos.d/*.repo / etc/yum.repos.d/bakwget-O / etc/yum.repos.d/CentOS-Base.repo http://mirrors.cloud.tencent.com/repo/centos7_base.repowget-O / etc/yum.repos.d/epel.repo http://mirrors.cloud.tencent.com/repo/epel-7.repo yum clean all & & yum makecachecat
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.