This repository has been archived by the owner on Aug 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Selector Rules
satrapu edited this page Oct 14, 2017
·
4 revisions
This page details how to setup a load balancer to distribute requests made against several instances of DokuWiki hosted on a running instance of Rancher server using labels attached to these instances.
More information can be found here.
- Go to Rancher UI
- Upgrade service dokuwiki1 by adding one label: dokuwiki=blue
- Upgrade service dokuwiki2 by adding one label: dokuwiki=red
- Edit the Load Balancer for HTTP and HTTPS and add 2 Selector Rules
- Click the "Edit" button
- Go to the load balancer service and click the new "4443/tcp" link from Ports field
- You should now see both DokuWiki instances over HTTPS
- Edit once again the load balancer and modify Selector Rule 1, by changing Target to dokuwiki=yellow
- Click the "Edit" button
- Go to the load balancer service and click the new "4443/tcp" link from Ports field
- Try refreshing the page several times and you will notice DokuWiki Instance #1 no longer appears