Forum Discussion
ezepsuarez
Nimbostratus
Jan 26, 2022Redirect all url to another cluster openshift
Currently we have 2 clusters, 1 active and 1 passive, and we configure a url for the user to enter without having to change anything and in case of having to redirect the traffic, it is transparent f...
Jan 26, 2022
Hi ezepsuarez,
Can you try the below iRule, after changed the pool name, members IP addresses, and ports?
when HTTP_REQUEST {
if { [LB::status pool grafana_pool member 10.11.12.101 443] eq "up" } {
HTTP::host "grafana-openshift-monitoring.apps.cluster1.company.com"
pool grafana_pool member 10.11.12.101 443
}
elseif { [LB::status pool grafana_pool member 10.11.12.102 443] eq "up" } {
HTTP::host "grafana-openshift-monitoring.apps.cluster2.company.com"
pool grafana_pool member 10.11.12.102 443
}
else {
HTTP::respond 200 content "Server unavailable"
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects