Skip to content

Commit

Permalink
add cdms helm files
Browse files Browse the repository at this point in the history
  • Loading branch information
pibion authored and zonca committed Mar 13, 2020
1 parent 0767af0 commit c0d09ed
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 0 deletions.
47 changes: 47 additions & 0 deletions cdms_helm/config_jupyterhub_cdms_helm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
jupyterhub:
prePuller:
hook:
enabled: false

hub:
db:
type: sqlite-pvc
pvc:
accessModes:
- ReadWriteOnce
storage: 1Gi
storageClassName: standard

singleuser:
# very small limits for testing on small instances
memory:
guarantee: 500M
limit: 1G
cpu:
guarantee: "0.3"
limit: "1"
storage:
type: dynamic
capacity: 1Gi
dynamic:
storageClass: standard
image:
name: zonca/pangeo_notebook_rsignell
tag: latest
defaultUrl: "/lab"
cmd: jupyter-labhub
serviceAccountName: daskkubernetes

# from secrets.yaml

hub:
cookieSecret: ""

proxy:
secretToken: ""

ingress:
enabled: true
hosts:
- js-XXX-YYY.jetstream-cloud.org

7 changes: 7 additions & 0 deletions cdms_helm/install_pangeo.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
RELEASE=cdms
NAMESPACE=cdms

helm upgrade --install $RELEASE cdms/cdms \
--version "v0.1.1-86665a6" \
--namespace $NAMESPACE \
--values config_jupyterhub_cdms_helm.yaml
27 changes: 27 additions & 0 deletions cdms_helm/worker_template.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
metadata:
spec:
restartPolicy: Never
containers:
- args:
- dask-worker
- --nthreads
- '2'
- --no-bokeh
- --memory-limit
- 300MB
- --death-timeout
- '60'
image: zonca/pangeo_notebook_rsignell:latest
name: dask-worker
securityContext:
capabilities:
add: [SYS_ADMIN]
privileged: true

resources:
limits:
cpu: ".1"
memory: 300M
requests:
cpu: ".1"
memory: 300M

0 comments on commit c0d09ed

Please sign in to comment.