ezepsuarez
Jan 26, 2022Nimbostratus
Redirect 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 for the user.
This is our configuration.
Users enter through this url
https://grafana-openshift-monitoring.apps.cluster.company.com/
and then with F5 it should be redirected to the cluster that is active and these 2 can be
https://grafana-openshift-monitoring.apps.cluster1.company.com/
https://grafana-openshift-monitoring.apps.cluster2.company.com/
The idea is that you don't have to rewrite each url, but instead set up an irule that replaces the cluster name within the url and then redirects it.
Any idea how to do it?