Skip to content

Instantly share code, notes, and snippets.

@amccarty
Last active April 8, 2020 15:26
Show Gist options
  • Save amccarty/327cc6b9f3f1b98d1124594123941a94 to your computer and use it in GitHub Desktop.
Save amccarty/327cc6b9f3f1b98d1124594123941a94 to your computer and use it in GitHub Desktop.
Jupyterlab Timeout Patch

1. Download patched image to master node:

curl -O https://aaron-svc.s3.amazonaws.com/jupyter_patch.tar.gz

2. Move it to /var/lib/gravity/planet/share:

cp jupyter_patch.tar.gz /var/lib/gravity/planet/share

3. Enter gravity:

sudo gravity enter

4. Load the image:

docker load --input /ext/share/jupyter_patch.tar.gz

5. Push the image:

docker push leader.telekube.local:5000/ae-app-proxy:timeout-fix

6. Edit the deployments for the workspace AND deploy pods:

kubectl edit deployments anaconda-enterprise-ap-workspace

change:

`value: leader.telekube.local:5000/ae-app-proxy:5.4.0-45.g47e240415`

to:

`value: leader.telekube.local:5000/ae-app-proxy:timeout-fix`

7. Set the following under Realm Settings -> Tokens in Keycloak:

tokens

8. Set "Web Origins" to * for the anaconda-platform, anaconda-enterprise-notebooks and anaconda-workspace Clients in Keycloak:

tokens

tokens

tokens

9. Log out of all Anaconda Enterprise sessions and log back in.

Note: any projects currently running will need to be stopped/restarted via the GUI or ae5-tools to pick up the patch.

@amccarty
Copy link
Author

amccarty commented Apr 8, 2020

anaconda-platform

anaconda-enterprise-notebooks

anaconda-workspace

tokens

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment