Skip to content

Commit

Permalink
Merge pull request 2i2c-org#3151 from yuvipanda/binder-resources
Browse files Browse the repository at this point in the history
Launch built images in imagebuilder-demo!
  • Loading branch information
yuvipanda authored Sep 18, 2023
2 parents fecf167 + 20a929e commit 046376a
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 17 deletions.
88 changes: 73 additions & 15 deletions config/clusters/2i2c/imagebuilding-demo.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ jupyterhub:
custom_html: <a href="https://www.dfg.de/">DFG</a>, <a href="https://www.cessda.eu/">CESSDA</a>, <a href="https://www.gesis.org/">GESIS</a>, FKZ/Project number <a href="https://gepris.dfg.de/gepris/projekt/460234259?language=en">460234259</a>
singleuser:
profileList:
- display_name: "Small"
description: "~2 CPU, ~2G RAM"
- display_name: "Only Profile Available, this info is not shown in the UI"
slug: only-choice
profile_options:
image:
display_name: Image
Expand All @@ -42,21 +42,77 @@ jupyterhub:
kubespawner_override:
image: "{value}"
choices:
pangeo_new:
display_name: Base Pangeo Notebook ("2023.07.05")
pangeo:
display_name: Pangeo Notebook Image
kubespawner_override:
image: pangeo/pangeo-notebook:2023.09.11
geospatial:
display_name: Rocker Geospatial
default: true
slug: "pangeo_new"
slug: geospatial
kubespawner_override:
image: "pangeo/pangeo-notebook:2023.07.05"
pangeo:
display_name: Base Pangeo Notebook
image: rocker/binder:4.3
# Launch into RStudio after the user logs in
default_url: /rstudio
# Ensures container working dir is homedir
# https://github.com/2i2c-org/infrastructure/issues/2559
working_dir: /home/rstudio
# Because this is a list, it will override our default volume mounts
volume_mounts:
# Mount the user home directory
- name: home
mountPath: /home/rstudio
subPath: "{username}"
# Mount the shared readonly directory
- name: home
mountPath: /home/rstudio/shared
subPath: _shared
readOnly: true
scipy:
display_name: Jupyter SciPy Notebook
slug: scipy
kubespawner_override:
image: jupyter/scipy-notebook:2023-06-26
resources:
display_name: Resource Allocation
choices:
mem_2_7:
display_name: 2.7 GB RAM, upto 3.479 CPUs
kubespawner_override:
mem_guarantee: 2904451072
mem_limit: 2904451072
cpu_guarantee: 0.434875
cpu_limit: 3.479
node_selector:
node.kubernetes.io/instance-type: n1-highmem-4
default: true
slug: "pangeo"
kubespawner_override:
# Explicitly unset mem_limit, so it overrides the default memory limit we set in
# basehub/values.yaml
mem_limit: 2G
cpu_limit: 2
mem_5_4:
display_name: 5.4 GB RAM, upto 3.479 CPUs
kubespawner_override:
mem_guarantee: 5808902144
mem_limit: 5808902144
cpu_guarantee: 0.86975
cpu_limit: 3.479
node_selector:
node.kubernetes.io/instance-type: n1-highmem-4
mem_10_8:
display_name: 10.8 GB RAM, upto 3.479 CPUs
kubespawner_override:
mem_guarantee: 11617804288
mem_limit: 11617804288
cpu_guarantee: 1.7395
cpu_limit: 3.479
node_selector:
node.kubernetes.io/instance-type: n1-highmem-4
mem_21_6:
display_name: 21.6 GB RAM, upto 3.479 CPUs
kubespawner_override:
mem_guarantee: 23235608576
mem_limit: 23235608576
cpu_guarantee: 3.479
cpu_limit: 3.479
node_selector:
node.kubernetes.io/instance-type: n1-highmem-4
hub:
services:
binder:
Expand All @@ -65,7 +121,7 @@ jupyterhub:
url: http://imagebuilding-demo-binderhub-service:8090
image:
name: quay.io/2i2c/dynamic-image-building-experiment
tag: "0.0.1-0.dev.git.7001.hf02ed7a1"
tag: "0.0.1-0.dev.git.7029.h44cd314e"
config:
JupyterHub:
authenticator_class: cilogon
Expand Down Expand Up @@ -118,6 +174,8 @@ binderhub-service:
# but pushes images under a different prefix
image_prefix: us-central1-docker.pkg.dev/two-eye-two-see/binder-staging-registry/binderhub-service-
KubernetesBuildExecutor:
# Get ourselves a newer repo2docker!
build_image: quay.io/jupyterhub/repo2docker:2023.06.0-8.gd414e99
node_selector:
# Schedule builder pods to run on user nodes only
hub.jupyter.org/node-purpose: user
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Image lives at quay.io/2i2c/second-hub-experimental
git+https://github.com/yuvipanda/jupyterhub-configurator@ed7e3a0df1e3d625d10903ef7d7fd9c2fbb548db
# Brings on using `unlisted_choice` in profile options per https://github.com/2i2c-org/infrastructure/issues/2146
git+https://github.com/jupyterhub/kubespawner@5a90351adba7d65286bd5e00e82f156011bf7b83
git+https://github.com/jupyterhub/kubespawner@9663b7e0f0d3942962c99a39c375358f19e0718e
# Brings in https://github.com/yuvipanda/prototype-kubespawner-dynamic-building-ui
git+https://github.com/yuvipanda/prototype-kubespawner-dynamic-building-ui.git@2f9b899cb6d7ea91f0e5f69c48562a1cd73fc3da
git+https://github.com/yuvipanda/prototype-kubespawner-dynamic-building-ui.git@19aa3685069894aa8e8236b9865795cd17994f8f

0 comments on commit 046376a

Please sign in to comment.