In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
The following brings you how to deploy Traefik load balancer on Rancher, hoping to give you some help in practical application. Load balancing involves more things, there are not many theories, and there are many books on the Internet. Today, we will use the accumulated experience in the industry to do an answer.
First, label the Traefik host.
01-label the host node where the Traefik will be deployed. Jpg
02-the status of the host after being tagged with traefik_lb. Jpg
Deploy Traefik applications in the Rancher App Store
03-find Traefik App .jpg in the Rancher App Store
Instructions for using 04-Traefik load balancer-the host should be labeled, the default business port 8080 and the management port 8000.jpg
05-Traefik load balancer usage instructions-instructions and examples, the three main whether enabled, service port, hostname of these three tags. Jpg
06-modify the default exposed service port of Traefik to 80, keep the default settings for other configurations, and start the application .jpg
07-successful deployment of Traefik application with business port 80 and management port 8000.jpg
08-when no service is created, access to the Traefik panel through port 8000 shows that Rancher is enabled as the data provider, but the front end and back end are empty. jpg
Deploy 2 test applications in Rancher
09-add a web1 service, use rancher to test the image hello-world, add the necessary Traefik tags to the service, and the port of the container is 80.jpg
10-add a web2 service, use tutum to test the image hello-world, add the necessary Traefik tags to the service, and the port of the container is 80.jpg
11-status in Rancher after service addition. Jpg
You can already see the status of the two services on 12-Traefik UI. Jpg
Expand the copy of the test application, visit the test website, and view the Traefik status
13-expand the service to multiple replicas in the Rancher management page, web1 to 2, web2 to 3 .jpg
14-Service changes can also be displayed normally on the Traefik management side. Jpg
15-modify the local hosts file and access the web1.abc.com domain name .jpg through a browser
16-modify the local hosts file and access the web2.abc.com domain name .jpg through a browser
Status displayed by 17-Traefik UI .jpg
Attached picture:
First, label the Traefik host.
01-label the host node where the Traefik will be deployed. Jpg
02-the status of the host after being tagged with traefik_lb. Jpg
Deploy Traefik applications in the Rancher App Store
03-find Traefik App .jpg in the Rancher App Store
Instructions for using 04-Traefik load balancer-the host should be labeled, the default business port 8080 and the management port 8000.jpg
05-Traefik load balancer usage instructions-instructions and examples, the three main whether enabled, service port, hostname of these three tags. Jpg
06-modify the default exposed service port of Traefik to 80, keep the default settings for other configurations, and start the application .jpg
07-successful deployment of Traefik application with business port 80 and management port 8000.jpg
08-when no service is created, access to the Traefik panel through port 8000 shows that Rancher is enabled as the data provider, but the front end and back end are empty. jpg
Deploy 2 test applications in Rancher
09-add a web1 service, use rancher to test the image hello-world, add the necessary Traefik tags to the service, and the port of the container is 80.jpg
10-add a web2 service, use tutum to test the image hello-world, add the necessary Traefik tags to the service, and the port of the container is 80.jpg
11-status in Rancher after service addition. Jpg
You can already see the status of the two services on 12-Traefik UI. Jpg
Expand the copy of the test application, visit the test website, and view the Traefik status
13-expand the service to multiple replicas in the Rancher management page, web1 to 2, web2 to 3 .jpg
14-Service changes can also be displayed normally on the Traefik management side. Jpg
15-modify the local hosts file and access the web1.abc.com domain name .jpg through a browser
16-modify the local hosts file and access the web2.abc.com domain name .jpg through a browser
Status displayed by 17-Traefik UI .jpg
After reading the above about how to deploy Traefik load balancer on Rancher, if there is anything else you need to know, you can find out what you are interested in in the industry information or find our professional and technical engineer for answers. Technical engineers have more than ten years of experience in the industry. Official website link www.yisu.com
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.