In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
This article is to share with you the kubernetes cluster deployment tutorial, I believe most people do not know how to deploy, in order to let you learn, so to sum up the following content. The most basic hardware requirements
CPU: dual core
MEm:2G
3 dockerhost time must be synchronized
Kubeadm tool
All three are in operation:
1. Name:
[root@docker01 ~] # hostnamectl set-hostname master
[root@docker02 ~] # hostnamectl set-hostname node02
[root@docker03 ~] # hostnamectl set-hostname node03
1.
All 3 validate docker: (the version must be the same)
two。
[root@master] # docker-v
Docker version 18.09.0, build 4d60db4
1.
3 docker disable swap.
two。
[root@master ~] # swapoff-a # # temporarily disabled
[root@master] # free-h
Total used free shared buff/cache available
Mem: 1.8G 521M 193M 18M 1.1G 1.0G
Swap: 0B 0B 0B
[root@master ~] # vim / etc/fstab
11 lines: # / dev/mapper/cl-swap swap
Add domain name resolution:
[root@master ~] # vim / etc/hosts
192.168.1.10 master
192.168.1.20 node02
192.168.1.30 node03
Master:
Secret-free login:
[root@master] # ssh-keygen-t rsa
[root@master ~] # ssh-copy-id node02
[root@master ~] # ssh-copy-id node03
[root@master ~] # vim / etc/sysctl.d/k8s.conf # enable iptables bridging function
Net.bridge.bridge-nf-call-iptables = 1
Net.bridge.bridge-nf-call-ip6tables = 1
Route forwarding:
[root@master ~] # echo net.ipv4.ip_forward = 1 > > / etc/sysctl.conf
[root@master] # sysctl-p
[root@master] # sysctl-p / etc/sysctl.d/k8s.conf
The following conditions were not successfully entered:
[root@master ~] # modprobe br_netfilter
[root@master ~] # scp / etc/sysctl.d/k8s.conf node02:/etc/sysctl.d/
[root@master ~] # scp / etc/sysctl.d/k8s.conf node03:/etc/sysctl.d/
[root@master ~] # scp / etc/sysctl.conf node02:/etc/
[root@master ~] # scp / etc/sysctl.conf node03:/etc/
All three:
Add yum Feed
Cat / .bashrc
The above is the deployment of the kubernetes cluster, although the length is very complex, but the sample code is very detailed and easy to understand, if you want to learn more about it, please pay attention to the industry information.
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.