Sometimes we may want to change the URL and naming convention of a hub
we have deployed, e.g., renaming the previous ‘researchdelight’ hub to ‘showcase’ 2i2c
Rename config files and update file references
Our naming conventions mean that we have config files in the form
<hub-name>.values.yamland these are explicitly listed as a hub entry within the associatedcluster.yamlfile where the hub is deployed. These files should be renamed<old-hub-name>.values.yaml--><new-hub-name>.values.yamland updated in the associatedcluster.yamlfile.Update instance of the old hub name within the config files
This will mostly be related to URLs, e.g.,
jupyterhub.ingress.hostsand OAuth callback URLs for authentication.Update any instances of the old hub name in the
cluster.yamlfileAdd a redirect from the old URL to the new one
In the
support.values.yamlfile for the cluster, set up automatic redirection of users going to the old domain name to arrive at the new new domain name.redirects: rules: - from: <old-domain> to: <new-domain>Open a Pull Request with the changes for review
Once the PR has been approved:
Update A/CNAME records in Namecheap for the new URL
Update the relevant OAuth app for the new URL
Merge the PR
If you also changed the
namefield within thecluster.yamlfile, delete the old hub namespace in helm. It is recommended to migrate the data first.