Skip to content

Commit

Permalink
Merge pull request #47 from pangeo-data/staging
Browse files Browse the repository at this point in the history
bump r2d version on prod
  • Loading branch information
Joe Hamman committed May 1, 2019
2 parents 0ea4ce1 + 24ff4f5 commit 4689924
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 17 deletions.
3 changes: 3 additions & 0 deletions deploy/prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ binderhub:
hosts:
- binder.pangeo.io

dind:
hostSocketDir: /var/run/dind/prod/docker.sock

jupyterhub:
singleuser:
nodeSelector:
Expand Down
14 changes: 10 additions & 4 deletions deploy/staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ binderhub:
hosts:
- staging.binder.pangeo.io

dind:
hostSocketDir: /var/run/dind/staging/docker.sock
resources:
requests:
cpu: "1"
memory: 2Gi
limits:
cpu: "2"
memory: 4Gi

jupyterhub:
singleuser:
nodeSelector:
Expand All @@ -32,10 +42,6 @@ binderhub:
- secretName: kubelego-tls-jupyterhub-staging
hosts:
- hub.staging.binder.pangeo.io
# scheduling:
# userScheduler:
# nodeSelector:
# cloud.google.com/gke-nodepool: default-pool

kube-lego:
nodeSelector:
Expand Down
2 changes: 1 addition & 1 deletion helm-chart/pangeo-binder/requirements.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# requirements.yaml
dependencies:
- name: binderhub
version: 0.2.0-612ade7
version: 0.2.0-10ac4d8
repository: https://jupyterhub.github.io/helm-chart/
import-values:
- child: rbac
Expand Down
42 changes: 30 additions & 12 deletions helm-chart/pangeo-binder/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ binderhub:
config:
BinderHub:
use_registry: true
build_image: jupyter/repo2docker:9bcc41af
build_image: jupyter/repo2docker:9099def4
per_repo_quota: 150
template_path: /etc/binderhub/custom/templates
extra_static_path: /etc/binderhub/custom/static
Expand All @@ -26,15 +26,6 @@ binderhub:
ingress.kubernetes.io/proxy-body-size: 64m
kubernetes.io/ingress.class: nginx
kubernetes.io/tls-acme: 'true'
# scheduling:
# userScheduler:
# enabled: true
# replicas: 2
# podPriority:
# enabled: true
# userPlaceholder:
# enabled: true
# replicas: 2
cull:
# cull every 11 minutes so it is out of phase
# with the proxy check-routes interval of five minutes
Expand All @@ -44,7 +35,7 @@ binderhub:
maxAge: 10800
singleuser:
serviceAccountName: daskkubernetes
# start jupyter notebook
# start jupyter lab
cmd: jupyter-lab
cloudMetadata:
enabled: true
Expand Down Expand Up @@ -104,7 +95,27 @@ binderhub:
- name: custom-templates
mountPath: /etc/binderhub/custom
dind:
enabled: True
enabled: true
daemonset:
image:
name: docker
tag: 18.09.2-dind
resources:
requests:
cpu: "2"
memory: 8Gi
limits:
cpu: "5"
memory: 12Gi

imageCleaner:
enabled: true
# when 80% of inodes are used,
# cull images until only 40% are used.
imageGCThresholdHigh: 80
imageGCThresholdLow: 40
host:
enabled: false

nginx-ingress:
rbac:
Expand All @@ -119,6 +130,13 @@ nginx-ingress:
config:
# Allow POSTs of upto 64MB, for large notebook support.
proxy-body-size: 64m
resources:
requests:
cpu: 0.5
memory: 240Mi
limits:
cpu: 0.8
memory: 240Mi

service:
# Preserve client IPs
Expand Down

0 comments on commit 4689924

Please sign in to comment.