In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail about the automatic installation and deployment of Centos7.x+Kubernetes-1.12.3+Dashboard-1.8.3, the content of the article is of high quality, so the editor will share it with you for reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.
Personal organized Centos7.x+Kubernetes-1.12.3+Dashboard-1.8.3 without CVE-2018-1002105 vulnerability master node fully automatic quick one-click installation deployment file, suitable for rapid installation and deployment of test environment and production environment
Preparation for installation of master node
Configure the network environment of centos to connect to the Internet and download installation files
Log in to centos7 with the root user and copy all the * .sh,*.ymal files in the project to the / root/ directory
Modify the file permissions of * .sh:
Chmod + 777 / root/*.sh
Execute the following command to replace ip in * .sh with the ip address of your centos7
# modify and replace the following your_master_centos_ip installation tutorial for your master_centos ipsed-I "s/192.168.119.212/your_master_centos_ip/g" / root/*.shmaster node
Execute node-kubeadm-init.sh to install kubernetes 1.12.3 environment
Sh / root/node-kubeadm-init.sh
Execute node-kubeadm-install.sh and install kubernetes-dashboard-1.8.3 Management UI
Sh / root/node-kubeadm-install.sh
When all is done, open the browser: visit: https://your_centos_ip:30001, log in using token, and view the token as follows:
# execute the command to get the list of all keys: kubectl-n kube-system get secret# execute command Get the token:kubectl-n kube-system describe secret kubernetes-dashboard-admin-token-* # {kubernetes-dashboard-admin-token-skhfh-like key string copied in the output of the previous command of the specified key and replace here} # copy the tokdn data into the login box to log in-- -- at this point, the Kubernetes installation of a single node is complete. If you want to add a new node, see below-node node join preparation
Configure the network environment of centos to connect to the Internet and download installation files
Log in to centos7 with the root user and copy the node_kubeadm_join.sh file in the project to the / root/ directory
Modify the file permissions of * .sh:
Chmod + 777 / root/*.sh
Execute the following command to replace ip in * .sh with the ip address of your centos7
# modify and replace the following your_master_centos_ip for your master_centos ipsed-I "s/192.168.119.212/your_master_centos_ip/g" / root/*.sh# modify replace the following your_node_centos_ip for your node_centos ipsed-I "s/192.168.168.145/your_node_centos_ip/g" / root/*.sh# modify and replace the following your_node _ centos_host is the host of your node_centos Format such as: node-192-168168-145with IP value Will. Replace by-sed-I "s/node-192-168168-145/your_node_centos_host/g" / root/*.sh# modify replace the following your_join_token for master join token# view master join token method: execute on master node: kubectl token list Get the unexpired token# to create a new token in master: execute the tutorial on the master node: kubectl create tokensed-I "s/join_token/your_join_token/g" / root/*.shnode node join the tutorial
Execute node-kubeadm-join.sh to join the new node
Sh / root/node-kubeadm-join.sh
When all is done, open the browser: visit: https://your_master_centos_ip:30001 to check the node preparation. It will take some time for the node to be ready.
On the automatic installation and deployment of Centos7.x+Kubernetes-1.12.3+Dashboard-1.8.3 is how to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
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.