Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Rancher2.3 installs k8s cluster

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

Catalogue

1. Rancher introduction

2. Installation requirements

2.1 operating system and Docker requirements

2.2 hardware requirements

Port requirements for 2.3Rancher to communicate with user clusters

3. Single node installation

4. Web interface of rancher

4.1 Log in to rancher as the web interface

4.2 Custom Cluster

4.3 Import the created cluster

1. Rancher introduction

Each team can deploy applications on the public or private cloud of their choice, and the roles played by Rancher in IT and DevOps organizations are as follows

Multiple functions at the same time:

Built-in CI/CD pipeline

Alarm and log collection function

Multi-cluster management function

Integrated Rancher Kubernetes Engine (RKE)

Integration with cloud Kubernetes services (such as GKE, EKS, AKS)

2. Installation requirements 2.1 operating system and Docker requirements

2.2 hardware requirements HA cluster

Single node

Port requirements for 2.3Rancher to communicate with user clusters

3. Single node installation

Docker run-d-restart=unless-stopped\

-p 80:80-p 443purl 443\

-v / usr/local/rancher:/usr/local/rancher\

Rancher/rancher:latest

4. Rancher's web interface 4.1 access the web interface and log in through the host's IP

Set the URL address that needs to be accessed

Set Chinese font

Add Cluster

Generate your own cluster

You can customize the RKE cluster, or you can import the cluster you have already built.

4.2 customize a cluster first

Set the name of the custom cluster and select the version of the cluster that needs to be installed.

Select the required network policy

Set up according to your own needs

After selecting the master node, run the following command after you need to install it as a master node

Run the following command on the work node

The running process will pull the required images, depending on your network conditions.

After all the containers are running, you can see the following interface, indicating that your cluster is ready.

At this point, the custom cluster is complete.

4.3 Import the created cluster

Define a random cluster name

Copy the following two commands to run on the master node. When running the first command, because the self-signed certificate will report an x509 error, just skip the error when executing the following command

When you see it on the master node

See in the rancher interface

Then the import is successful!

Note: because there is no screenshot during the operation, the picture is added later, so don't care about the content of the picture, as long as you can see the corresponding picture!

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report