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 deploys k8s:v1.16.3 highly available clusters

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

I. Environmental description

Cat / etc/hosts

192.168.10.11 node1 # master1

192.168.10.14 node4 # master2

192.168.10.15 node5 # master3

Note: since you are operating in your own virtual machine, only the master node is deployed. I will write out the operations performed by the worker node and follow the actions.

II. Environmental configuration

1. Set Ali Cloud yum source (optional)

Curl-o / etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

Rm-rf / var/cache/yum & & yum makecache

2. Install the dependency package

Yum install-y epel-release conntrack ipvsadm ipset jq sysstat curl iptables libseccomp

3. Turn off the firewall

Systemctl stop firewalld & & systemctl disable firewalld

Iptables-F & & iptables-X & & iptables-F-t nat & & iptables-X-t nat & & iptables-P FORWARD ACCEPT

4. Close SELinux

Setenforce 0

Sed-I "s/SELINUX=enforcing/SELINUX=disabled/g" / etc/selinux/config

5. Close the swap partition

Swapoff-a

Sed-I'/ swap / s / ^\ (. *\) $/ #\ 1Universe g'/ etc/fstab

6. Load kernel module

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.

Share To

Servers

Wechat

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

12
Report