In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
1. Cluster planning hostname IP role main plug-in VIP172.16.1.10 implements master high availability and load balancing k8s-master01172.16.1.11masterkube-apiserver, kube-controller, kube-scheduler, kubelet, kube-proxy, kube-flannel, etcdk8s-master02172.16.1.12masterkube-apiserver, kube-controller, kube-scheduler, kubelet, kube-proxy, kube-flannel, etcdk8s-master03172.16.1.13masterkube-apiserver, kube-controller, kube-scheduler, kubelet, kube-proxy, kube-flannel, Etcdk8s-node01172.16.1.21nodekubelet 、 kube-proxy 、 kube-flannelk8s-node02172.16.1.22nodekubelet 、 kube-proxy 、 kube-flannel
Master nodes achieve high availability and load balancing through keepalived and haproxy. For CVMs, you can directly use relevant cloud products, such as Aliyun's slb or Tencent Cloud's clb.
II. Preparatory work
Make the following preparations on all nodes
1. Hardware configuration
It is recommended that at least 2 CPU and 2G are not required. 1CPU and 1G can also set up clusters, but there will be a WARNING prompt during deployment:
# 1 CPU may report [WARNING NumCPU] when initializing master: warning:FailedScheduling:Insufficient cpu or Insufficient memory2 may be reported when the number of available CPUs 1 is less than the required administrator deploys plug-ins or pod. Modify the kernel parameter cat RemoteAddress:Port Forward Weight ActiveConn InActConnTCP 10.96.0.1 Masq 443 rr-> 172.16.1.11 Masq 6443 100-> 172.16.1.12 Masq 6443 100-> 172.16.1.13 Masq 6443 Masq 11 0 TCP 10.96.0.10 Masq 53 rr-> 10.244.3.2 Masq 53 Masq 100-> 10.244.4.2 Masq 100 TCP 10.96.0.10 TCP 9153 rr-> 10.244.3.2 Masq 9153 Masq 1 0-> 10.244.4.2 UDP 9153 Masq 100 UDP 10.96.0.10 rr-> 10.244.3.2 rr 53 Masq 100-> 10.244.4.2 rr 53 Masq 100 0
Through kubectl log-- tail=10 kube-proxy-tqxlq-n kube-system, look at the pod log, you can see: Using ipvs Proxier.
If the rule is not checked by ipvsadm, and the kube-proxy log finds:
Can't determine whether to use ipvs proxy, error: IPVS proxier will not be used because the following required kernel modules are not loaded: [ip_vs ip_vs_rr ip_vs_wrr ip_vs_sh] Using iptables Proxier.
Indicates that ipvs failed to be enabled.
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.