In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces "what is the method of Rancher deployment and import of K8S cluster". In the daily operation, I believe that many people have doubts about the method of Rancher deployment and import of K8S cluster. I have consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "what is the method of Rancher deployment and import of K8S cluster"! Next, please follow the editor to study!
There are three architectures that can be used to deploy Rancher:
Highly available Kubernetes installation: it is recommended that you install Rancher on a dedicated Kubernetes cluster using the Kubernetes package manager Helm. In a RKE cluster, three nodes are required for high availability. In a K3s cluster (lightweight kubernetes), only two nodes are needed.
Single-node Kubernetes installation: another option is to install Rancher using Helm on the Kubernetes cluster, using only a single node in the cluster. Although Rancher Server is not highly available in this case, this architecture saves resources and retains scalability. If you want to save resources by using a single node in the short term while maintaining a high-availability migration path, the most appropriate architecture is a single-node Kubernetes installation.
Single-node Docker installation: install Rancher and Docker on a single node together. The advantage of this installation is that it can be used out of the box, and it is recommended that you use this architecture in test and demonstration environments. Its disadvantages are also obvious that it cannot be migrated between a single-node Docker installation and a Kubernetes installation. If you have decided to use Rancher in a production environment, we recommend that you choose one of the two Kubernetes installations mentioned above and use it in a production environment.
Deploy Rancher v2.27 environment (single node Docker installation)
1. Here I deploy Rancher to 172.16.60.234, one of the node nodes in the k8s cluster. You need to download the rancher image in advance. Select the "rancher/rancher:stable" version image here.
# download rancher service image [root@k8s-node01 ~] # docker pull rancher/rancher:stable
two。 Start the Rancher service in container mode
# launch rancher container [root@k8s-node01 ~] # docker run-d-v / tmp/rancher:/tmp/rancher-- restart=unless-stopped-p 80:80-p 443 rancher/rancher:stable # View rancher container [root@k8s-node01 ~] # docker ps | grep rancher2c2b36cb138b rancher/rancher:stable "entrypoint.sh" 3 hours ago Up 3 hours 0.0.0.0Plu80-> 80/tcp 0.0.0.0UR 443-> 443/tcp lucid_robinson
The access address is https://172.16.60.234. The first visit will prompt you to set the admin administrator password. For example, the administrator password is set to: admin@123456
Import k8s cluster into Rancher environment
Import the deployed K8s cluster into the Rancher environment. Click "add Cluster"-> "Import"-> "add Cluster-Import"
two。 Give yourself a name for the imported cluster. For example, the k8s cluster name I imported here is set to "kuvin-test-cluster"
At this point, the study on "what is the method of Rancher deployment and import of K8S cluster" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.