Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Kubeadm builds highly available kubernetes 1.15.1

2025-04-05 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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report