Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from 2i2c-org:master #501

Merged
merged 10 commits into from
Sep 25, 2023
Merged
2 changes: 1 addition & 1 deletion config/clusters/2i2c-aws-us/researchdelight.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ basehub:
hub:
image:
name: quay.io/2i2c/unlisted-choice-experiment
tag: "0.0.1-0.dev.git.6863.h406a3546"
tag: "0.0.1-0.dev.git.7080.h0da36d1e"
config:
JupyterHub:
authenticator_class: github
Expand Down
2 changes: 1 addition & 1 deletion config/clusters/2i2c/imagebuilding-demo.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,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.7067.hdae5e902"
tag: "0.0.1-0.dev.git.7080.h0da36d1e"
config:
JupyterHub:
authenticator_class: github
Expand Down
2 changes: 1 addition & 1 deletion config/clusters/leap/common.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ basehub:
hub:
image:
name: quay.io/2i2c/unlisted-choice-experiment
tag: "0.0.1-0.dev.git.6863.h406a3546"
tag: "0.0.1-0.dev.git.7080.h0da36d1e"
allowNamedServers: true
config:
Authenticator:
Expand Down
85 changes: 67 additions & 18 deletions config/clusters/meom-ige/common.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,39 +36,94 @@ basehub:
DATA_BUCKET: gs://meom-ige-data
SCRATCH_BUCKET: "gs://meom-ige-scratch/$(JUPYTERHUB_USER)"
profileList:
# This profile list option was added for the event outlined in
# https://github.com/2i2c-org/infrastructure/issues/3126, it is a one
# day event taking place september 27th 2023. Access to users in the
# temporary group should be removed after the event.
- display_name: Grenoble demo
default: true
allowed_teams:
- 2i2c-org:hub-access-for-2i2c-staff
- meom-group:hub-users # long term users
- demo-dask-grenoble2023:demo # temporary users for event
description: Start a server on a machine with 64 CPUs and 512GB of memory
slug: demo
profile_options:
requests:
display_name: Resource allocation
choices:
# mem_8:
# display_name: 8 GB RAM, up to 4 CPU
# kubespawner_override:
# mem_guarantee: 7.593G
# mem_limit: 8G
# cpu_guarantee: 0.984
# cpu_limit: 4
# mem_16:
# default: true
# display_name: 16 GB RAM, up to 8 CPU
# kubespawner_override:
# mem_guarantee: 15.186G
# mem_limit: 16G
# cpu_guarantee: 1.969
# cpu_limit: 8
mem_32:
display_name: 32 GB RAM, up to 16 CPU
kubespawner_override:
mem_guarantee: 30.372G
mem_limit: 32G
cpu_guarantee: 3.938
cpu_limit: 16
# mem_64:
# display_name: 64 GB RAM, up to 32 CPU
# kubespawner_override:
# mem_guarantee: 60.744G
# mem_limit: 64G
# cpu_guarantee: 7.875
# cpu_limit: 32
kubespawner_override:
node_selector:
node.kubernetes.io/instance-type: n2-highmem-64

# The mem-guarantees are here so k8s doesn't schedule other pods
# on these nodes. They need to be just under total allocatable
# RAM on a node, not total node capacity
- display_name: "Small"
allowed_teams: &allowed_teams_normal_use
- 2i2c-org:hub-access-for-2i2c-staff
- meom-group:hub-users # long term users
description: "~2 CPU, ~8G RAM"
default: true
kubespawner_override:
mem_limit: 8G
mem_guarantee: 4G
node_selector:
node.kubernetes.io/instance-type: n1-standard-2
- display_name: "Medium"
allowed_teams: *allowed_teams_normal_use
description: "~8 CPU, ~32G RAM"
kubespawner_override:
mem_limit: 32G
mem_guarantee: 22G
node_selector:
node.kubernetes.io/instance-type: n1-standard-8
- display_name: "Large"
allowed_teams: *allowed_teams_normal_use
description: "~16 CPU, ~64G RAM"
kubespawner_override:
mem_limit: 64G
mem_guarantee: 47G
node_selector:
node.kubernetes.io/instance-type: n1-standard-16
- display_name: "Very Large"
allowed_teams: *allowed_teams_normal_use
description: "~32 CPU, ~128G RAM"
kubespawner_override:
mem_limit: 128G
mem_guarantee: 100G
node_selector:
node.kubernetes.io/instance-type: n1-standard-32
- display_name: "Huge"
allowed_teams: *allowed_teams_normal_use
description: "~64 CPU, ~256G RAM"
kubespawner_override:
mem_limit: 256G
Expand All @@ -83,30 +138,24 @@ basehub:
userScheduler:
enabled: false
hub:
allowNamedServers: true
config:
JupyterHub:
authenticator_class: cilogon
CILogonOAuthenticator:
authenticator_class: github
GitHubOAuthenticator:
populate_teams_in_auth_state: true
allowed_organizations:
- 2i2c-org:hub-access-for-2i2c-staff
- meom-group:hub-users # long term users
- demo-dask-grenoble2023:demo # temporary users for event
scope:
- "profile"
shown_idps:
- http://github.com/login/oauth/authorize
allowed_idps:
http://github.com/login/oauth/authorize:
username_derivation:
username_claim: "preferred_username"
- read:org
Authenticator:
# FIXME: In z2jh 3.0.0-beta.1, a truthy allowed_users implies
# allow_existing_users=True, while in z3jh 3.0.0 this needs to be
# configured explicitly.
#
allowed_users: &users
enable_auth_state: true
admin_users:
- roxyboy
- lesommer
- auraoupa
admin_users: *users

allowNamedServers: true
dask-gateway:
gateway:
extraConfig:
Expand Down
20 changes: 0 additions & 20 deletions config/clusters/meom-ige/enc-drakkar-demo.secret.values.yaml

This file was deleted.

10 changes: 5 additions & 5 deletions config/clusters/meom-ige/enc-prod.secret.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ basehub:
jupyterhub:
hub:
config:
CILogonOAuthenticator:
client_id: ENC[AES256_GCM,data:xIMwdp4OmWwc1w0H9Grbhv6g+CpATbn3rScgJlShpcte1LzDqeVgLvBHiLrUMo/Xi70Q,iv:5f5lrIHUrtbN2M74b9OPefH4WRCmlm36yToX8Wsziss=,tag:WUCXxLH38iWWHnW/1RM6cQ==,type:str]
client_secret: ENC[AES256_GCM,data:tWeX8fYjm/xCXcRGNiHqby0D1b1HKGZ6j+wkF1F8TMR3JuzGEhXLI6j2HI/TgenX6/Ai0v/y16OxG1Ae62KaWJLa0YRtIhONN/XDOKFZppApKm+P2A4=,iv:Mqs9fuH3rzoFUipiocz3irGTHS65ymQOjigdlhOBmFs=,tag:9dCcnlMlH3+WHDZlVSzcNg==,type:str]
GitHubOAuthenticator:
client_id: ENC[AES256_GCM,data:20CT8KFoVZy2P4Od43no0lAVhCU=,iv:Arlo3GtDraZv8eatIL4/JIMLukIyIUyD75SLL3sxa9M=,tag:SvulfupLUmpeaT7+PNhZqg==,type:str]
client_secret: ENC[AES256_GCM,data:BocSICHjaMSsU+z6HtufNWpIvmnucu3PZM9UUSxElgkPt8SfxFpjXw==,iv:q+maJU6vHU/XJHWRCn8SCpaNYVfE7w4YczcwvV65u7E=,tag:DBJ2ifD+es8wykPEZ7jfbw==,type:str]
sops:
kms: []
gcp_kms:
Expand All @@ -14,8 +14,8 @@ sops:
azure_kv: []
hc_vault: []
age: []
lastmodified: "2023-03-13T10:17:09Z"
mac: ENC[AES256_GCM,data:h7iNgvpiwxTARQxz8/MGI/xOf0vC7BK3xZ/CBJF4nYofIdKltVAwqHRX/ztLCpzCMRZ6BdyFUIIHVAWxIIQTVFT0l/Cp9f/cxvoddHKzx4cerA9WC9Zv8lmdgCIL2irFshyNFm/7BQmTTpjLDGmt9OW0/wZflyJCAC7uWNaiMRQ=,iv:l84Ikdxm9pv0/tihz03sAVIfMiUPzj56ayefwolJ7JQ=,tag:DBaGopzzB8FWce4VZFchfQ==,type:str]
lastmodified: "2023-09-25T15:34:20Z"
mac: ENC[AES256_GCM,data:A9sAboZs2rn/ncU/v0WRAtENRsbg/e9Astg+7AaiIyZOICS8qqY2w+rQ5kJOdOCWZZ77XUFdiMEeKRaTwy/0VLVE4tHtFUBROwlPmvX5bxhnLd0qSPFjoP0Z+k4JHl70pSF1IWDLT5EzHdc+6jARGqO+Ssgc6+kYCT+ezBGcPNA=,iv:epR71c+eqgZPbolP7wD3nm0cZt/YxrN1O5pziE1RdsQ=,tag:95qKL+q7/sDMrSPaye/D3w==,type:str]
pgp: []
unencrypted_suffix: _unencrypted
version: 3.7.3
10 changes: 5 additions & 5 deletions config/clusters/meom-ige/enc-staging.secret.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ basehub:
jupyterhub:
hub:
config:
CILogonOAuthenticator:
client_id: ENC[AES256_GCM,data:yx2uzwGKf+WEoG+pyGKzkA0NvoayyW1PXJ+dtXwf0sHnohOUkGsQmWt7mLBm2d6sXzc0,iv:axmz1xSTtAgNgEXnFuQ1Af0ftDqxu13KABtZIixmboc=,tag:dZA//khE2//4d4+3pT+F+Q==,type:str]
client_secret: ENC[AES256_GCM,data:MAjP8OZLLJlL0moBRR13xc+2dWcVkFMi6O0U/6m+pcZeCD8HNw2Jo9mX0cHzHciGD6a5Q63iFHiMKR/i9Nnj7kddBW3mnp1ZCO+qpFvoR4JFE3VJ2/M=,iv:zNMIhEL8/RbKk3Ss0UljkzHntRXPzvrdOTZTciH51FU=,tag:mDCSDz671bJ291nPccD6zw==,type:str]
GitHubOAuthenticator:
client_id: ENC[AES256_GCM,data:Cj/DCB17LsiBb0wTPmMTZzyeeVY=,iv:smUgveZ51h6I5ysRzirM1QZOI72pfP92FhoDUC89fNM=,tag:Kph3L3FdvfPKtBn2IL7/tw==,type:str]
client_secret: ENC[AES256_GCM,data:Oql9Tpcd8T/Oot8Nq/4A8B/j0qtPZhldq4ZRMzu5O/5aUcJX/P5+fw==,iv:ejOc3X/H4lncpRz5IsiLtxcuWubuVKcg2Ir9/NhaAPA=,tag:eXo5cwT8CA73wIaMKdHNpw==,type:str]
sops:
kms: []
gcp_kms:
Expand All @@ -14,8 +14,8 @@ sops:
azure_kv: []
hc_vault: []
age: []
lastmodified: "2023-03-13T10:15:46Z"
mac: ENC[AES256_GCM,data:YTpTnlBaZaya4DY1D1/z3SjHrjtAZ/JJmgwa8urrNz7CgQOu/nreWbO6+xalfEKJS7F8jl/rntPOJC/B5V38/gu77sTH31snGtoqMHcJg2yrP+LuEBB40OjukpVi/6cBdM4HmduXCt/ksjGsuo3rvZ9qqmCEoRv/nGg/WK3L3qM=,iv:Ph+2pjyyko4k5tWwT2OWf/pOcpFvuviSj8P5EnaNVQk=,tag:2hGU/xdfyX/C8QicHiLeYw==,type:str]
lastmodified: "2023-09-25T15:33:42Z"
mac: ENC[AES256_GCM,data:7PfLfCKajZpSyDTzOHxukoJdCVrCzdNj+k5mt/LIIoObSA/POfAVZdFhsqkeDq+mKd6uZsO+2JadQpeaeHTBZgbLzo+Dz7K+OB/HPG/W/2nwgDyIAo1ibeW0665RYkI+f4/hzg8GFKw2edjY8zCTBmb7dY88qdFgTX+bb8B+3Js=,iv:8bqwW/ldiG8iZWuo7FJplu3w6tP+376R7l+9vaDziFE=,tag:09bhG2Crp7D3W7ESI7s1jQ==,type:str]
pgp: []
unencrypted_suffix: _unencrypted
version: 3.7.3
2 changes: 1 addition & 1 deletion config/clusters/nasa-veda/common.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ basehub:
hub:
image:
name: quay.io/2i2c/unlisted-choice-experiment
tag: "0.0.1-0.dev.git.6863.h406a3546"
tag: "0.0.1-0.dev.git.7080.h0da36d1e"
allowNamedServers: true
config:
Authenticator:
Expand Down
2 changes: 1 addition & 1 deletion config/clusters/openscapes/staging.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ basehub:
hub:
image:
name: quay.io/2i2c/unlisted-choice-experiment
tag: "0.0.1-0.dev.git.6863.h406a3546"
tag: "0.0.1-0.dev.git.7080.h0da36d1e"
config:
CILogonOAuthenticator:
oauth_callback_url: "https://staging.openscapes.2i2c.cloud/hub/oauth_callback"
2 changes: 1 addition & 1 deletion helm-charts/basehub/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ jupyterhub:
admin: true
image:
name: quay.io/2i2c/pilot-hub
tag: "0.0.1-0.dev.git.6074.h895181eb"
tag: "0.0.1-0.dev.git.7080.h0da36d1e"
networkPolicy:
enabled: true
# interNamespaceAccessLabels=accept makes the hub pod's associated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
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
# Brings in https://github.com/jupyterhub/kubespawner/pull/787
# This kubespawner version includes an important bugfix pending 6.1.0 release
# tracked in https://github.com/jupyterhub/kubespawner/issues/767
git+https://github.com/jupyterhub/kubespawner@d60146f5fe9cd31e09acf13c377d9334ecf59c9b
# Brings in https://github.com/yuvipanda/jupyterhub-fancy-profiles
git+https://github.com/yuvipanda/jupyterhub-fancy-profiles@b624031b661f71a278a37bb1fae0b8d6f316d6b3
3 changes: 3 additions & 0 deletions helm-charts/images/hub/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# This kubespawner version includes an important bugfix pending 6.1.0 release
# tracked in https://github.com/jupyterhub/kubespawner/issues/767
git+https://github.com/jupyterhub/kubespawner@d60146f5fe9cd31e09acf13c377d9334ecf59c9b
git+https://github.com/yuvipanda/jupyterhub-configurator@ed7e3a0df1e3d625d10903ef7d7fd9c2fbb548db
4 changes: 3 additions & 1 deletion helm-charts/images/hub/unlisted-choice-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
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@8cc569c78bcdb342e694f7344219e43d522f4809
# This kubespawner version includes an important bugfix pending 6.1.0 release
# tracked in https://github.com/jupyterhub/kubespawner/issues/767
git+https://github.com/jupyterhub/kubespawner@d60146f5fe9cd31e09acf13c377d9334ecf59c9b
15 changes: 15 additions & 0 deletions terraform/gcp/projects/meom-ige.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,21 @@ core_node_machine_type = "n2-highmem-4"
enable_network_policy = false

notebook_nodes = {
"n2-highmem-4" : {
min : 0,
max : 100,
machine_type : "n2-highmem-4"
},
"n2-highmem-16" : {
min : 0,
max : 100,
machine_type : "n2-highmem-16"
},
"n2-highmem-64" : {
min : 0,
max : 100,
machine_type : "n2-highmem-64"
},
"small" : {
min : 0,
max : 20,
Expand Down
Loading