Open larsks opened 1 month ago
@DanNiESh
There's not going to be an easy way to do this.
The notebook address (test-image-1-ope-rhods-testing-1fef2f.apps.shift.nerc.mghpcc.org
) is managed by an OpenShift Route, and Routes have very simple behavior:
I don't think there's a simple way to modify this behavior. The best option would be to modify the code responsible for the JupyterLab/OpenShift integration such that it would create a simple "redirector" application when a notebook is stopped.
If we wanted to achieve the desired behavior ourselves, we might be able to write a controller that would:
Also reached out to slack #forum-openshift-ai to see if we can make a feature request to RHOAI team.
Update: RHOAI team has created an issue for us: https://issues.redhat.com/browse/RHOAIRFE-296. They also suggested us to try this: https://docs.openshift.com/container-platform/4.16/networking/ingress-operator.html#nw-customize-ingress-error-pages_configuring-ingress
I don't think that customizing the ingress operator will be a great option because it is a cluster-wide configuration. I guess we could have it include links to some documentation.
@DanNiESh can you give an update on the status of this issue?
Hi @larsks! We (@Isaiah Stapleton @Jonathan Appavoo @meera) have a question that we hope you can help us with. We want to solve an issue: when a student user enters a link to a stopped JupyterLab instance, such as https://test-image-1-ope-rhods-testing-1fef2f.apps.shift.nerc.mghpcc.org/notebook/ope-rhods-testing-1fef2f/test-image-1/lab, it results in an Application is not available page. Is there a way to redirect users to a page where they can restart the instance instead, in our case, this page: https://rhods-dashboard-redhat-ods-applications.apps.shift.nerc.mghpcc.org/projects/ope-rhods-testing-1fef2f.