From: Nizamudeen A Date: Fri, 23 Sep 2022 05:29:24 +0000 (+0530) Subject: Merge pull request #47265 from s0nea/wip-dashboard-redirect-fqdn X-Git-Tag: v18.1.0~429^2~6 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=1acdb44108683393f6b26995623feaaa79bbc517;p=ceph-ci.git Merge pull request #47265 from s0nea/wip-dashboard-redirect-fqdn mgr/dashboard: add option to resolve ip addr Reviewed-by: Pegonzal Reviewed-by: Anthony D Atri Reviewed-by: Ernesto Puerta --- 1acdb44108683393f6b26995623feaaa79bbc517 diff --cc doc/mgr/dashboard.rst index d3eb125fe7f,228e03a7d0a..7139a2ead4d --- a/doc/mgr/dashboard.rst +++ b/doc/mgr/dashboard.rst @@@ -1227,12 -1100,27 +1227,29 @@@ Configure the error status cod ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ When redirection is disabled, you may want to customize the HTTP status -code of standby dashboards. To do so you need to run the command:: +code of standby dashboards. To do so you need to run the command: + +.. prompt:: bash $ - $ ceph config set mgr mgr/dashboard/standby_error_status_code 503 + ceph config set mgr mgr/dashboard/standby_error_status_code 503 + Resolve IP address to hostname before redirect + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + The redirect from a standby to the active dashboard is done via the IP + address. This is done because resolving IP addresses to hostnames can be error + prone in containerized environments. It is also the reason why the option is + disabled by default. + However, in some situations it might be helpful to redirect via the hostname. + For example if the configured TLS certificate matches only the hostnames. To + activate the redirection via the hostname run the following command:: + + $ ceph config set mgr mgr/dashboard/redirect_resolve_ip_addr True + + You can disable it again by:: + + $ ceph config set mgr mgr/dashboard/redirect_resolve_ip_addr False + HAProxy example configuration ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^