Tasks for running nbviewer.org in helm, with invoke.
TODO: helm automatiion have not yet been implemented,
but are current run via deploy.sh
.
This assumes the nbviewer
repo is adjacent to this repo
and up-to-date.
Currently assumes you have helm, kubectl
- clone nbviewer:
git clone https://github.com/jupyter/nbviewer
- clone this repo:
git clone https://github.com/jupyter/nbviewer.org-deploy
- Run helm upgrade
cd nbviewer.org-deploy; bash deploy.sh
NOTE: The invoke tasks.py has not been updated
Right now, nbviewer is run on OVHCloud via helm in the namespace nbviewer
.
Python dependencies:
pip install -r requirements.txt
To upgrade the deployment in-place:
invoke upgrade
This will deploy the new helm configuration
-
Fastly is scripted now, but we could do better. Load-balancer DNS/ip is hardcoded in tasks.py and must be updated if changed. See the output of
kubectl get svc
for the current ip address, and update withinvoke fastly
. -
cdn.jupyter.org is proxied through Cloudflare DNS. Changes to ip require manual update at https://dash.cloudflare.com/dns.