Skip to content

Commit

Permalink
Merge pull request #138 from mrocklin/update-deployment
Browse files Browse the repository at this point in the history
Update pangeo.pydata.org deployment
  • Loading branch information
rabernat authored Mar 1, 2018
2 parents 10dc105 + 252b379 commit 28f86b9
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 34 deletions.
28 changes: 1 addition & 27 deletions gce/jupyter-config.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
proxy:
secretToken: SECRET

singleuser:
image:
name: daskdev/pangeo-notebook
tag: 2018-02-22
tag: 2018-03-01
cmd: ['start-singleuser.sh']
extraEnv:
EXTRA_PIP_PACKAGES: >-
Expand All @@ -24,29 +21,6 @@ singleuser:
limit: 4G
guarantee: 2G


# proxy:
# https:
# hosts:
# - pangeo.pydata.org
# letsencrypt:
# contactEmail: mrocklin@gmail.com

auth:
type: github
github:
clientId: "2cb5e09d5733ff2e6ae3"
clientSecret: "SECRET"
callbackUrl: "http://pangeo.pydata.org/hub/oauth_callback"
admin:
access: true
users:
- mrocklin
- jhamman
- rabernat
- yuvipanda
- choldgraf

rbac:
enabled: false

Expand Down
2 changes: 1 addition & 1 deletion gce/notebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ RUN pip install fusepy click jedi kubernetes --upgrade --no-cache-dir
RUN pip install daskernetes==0.1.3 \
git+https://github.com/zarr-developers/zarr \
git+https://github.com/pydata/xarray \
git+https://github.com/dask/gcsfs \
gcsfs==0.0.5 \
--no-cache-dir

RUN pip install distributed==1.21.1 \
Expand Down
12 changes: 10 additions & 2 deletions gce/notebook/worker-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,16 @@ metadata:
spec:
restartPolicy: Never
containers:
- args: [dask-worker, --nthreads, '2', --no-bokeh, --memory-limit, 7GB, --death-timeout, '60']
image: daskdev/pangeo-worker:2018-02-22
- args:
- dask-worker
- --nthreads
- '2'
- --no-bokeh
- --memory-limit
- 6GB
- --death-timeout
- '60'
image: daskdev/pangeo-worker:2018-03-01
name: dask-worker
securityContext:
capabilities:
Expand Down
17 changes: 17 additions & 0 deletions gce/secret-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
proxy:
secretToken: SECRET

auth:
type: github
github:
clientId: "2cb5e09d5733ff2e6ae3"
clientSecret: SECRET
callbackUrl: "http://pangeo.pydata.org/hub/oauth_callback"
admin:
access: true
users:
- mrocklin
- jhamman
- rabernat
- yuvipanda
- choldgraf
3 changes: 1 addition & 2 deletions gce/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ helm repo add jupyterhub https://jupyterhub.github.io/helm-chart/
helm repo update

# Install JupyterHub and Dask on the cluster
helm install jupyterhub/jupyterhub --version=v0.6.0-9701a90 --name=jupyter --namespace=pangeo -f jupyter-config.yaml
helm install dask/dask --name=dask --namespace=pangeo -f dask-config.yaml
helm install jupyterhub/jupyterhub --version=v0.6.0-9701a90 --name=jupyter --namespace=pangeo -f jupyter-config.yaml -f secret-config.yaml

# Look for publised services. Route domain name A records to these IPs.
kubectl get services --namespace pangeo
Expand Down
2 changes: 1 addition & 1 deletion gce/update.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Finally, use helm to *upgrade* the JupyterHub deployment. You will need to
specify the jupyter-config.yaml file and a particular version of JupyterHub

```bash
helm upgrade jupyter jupyterhub/jupyterhub -f jupyter-config.yaml --version=v0.6.0-9701a90
helm upgrade jupyter jupyterhub/jupyterhub -f jupyter-config.yaml -f secret-config.yaml --version=v0.6.0-9701a90
```

Verify
Expand Down
2 changes: 1 addition & 1 deletion gce/worker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ RUN pip install pyasn1 click urllib3 --upgrade

RUN pip install git+https://github.com/zarr-developers/zarr \
git+https://github.com/pydata/xarray \
git+https://github.com/dask/gcsfs \
gcsfs==0.0.5 \
fusepy \
--no-cache-dir

Expand Down

0 comments on commit 28f86b9

Please sign in to comment.