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

WeChat public account
Shulou
2025-12-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Kubeadm is a tool provided by Kubernetes to quickly install Kubernetes clusters. With the release of each version of Kubernetes, kubeadm will adjust some practices on cluster configuration. You can learn some new best practices on cluster configuration by experimenting with kubeadm.
1. Prepare 1.1system configuration [root@k8s-master ~] # cat / etc/hosts127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4::1 localhost localhost.localdomain localhost6 localhost6.localdomain6192.168.0.246 k8s-master192.168.0.247 k8s-node1192.168.0.248 k8s-node2
If each host has a firewall enabled and you need to open the ports required by each component of the Kubernetes, you can see the "Check required ports" section in Installing kubeadm. For simplicity here, disable the firewall on each node:
Systemctl stop firewalldsystemctl disable firewalld
Disable SELINUX:
Setenforce 0
Vi / etc/selinux/configSELINUX=disabled
Create the / etc/sysctl.d/k8s.conf file and add the following:
Net.bridge.bridge-nf-call-ip6tables = 1net.bridge.bridge-nf-call-iptables = 1net.ipv4.ip_forward = 1
Execute the order to make the changes take effect.
Modprobe br_netfilter
Sysctl-p / etc/sysctl.d/k8s.conf
Prerequisites for 1.2kube-proxy to enable ipvs
Since ipvs has been added to the backbone of the kernel, the following kernel modules need to be loaded to enable ipvs for kube-proxy:
Ip_vsip_vs_rrip_vs_wrrip_vs_shnf_conntrack_ipv4
Execute the following script on all Kubernetes nodes node1 and node2:
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.

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.