Skip to content

Commit

Permalink
opensci: add node selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
sgibson91 committed Nov 15, 2024
1 parent bfec9ce commit e06ef81
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/clusters/opensci/big-binder.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ jupyterhub:
# Schedule users on the smallest instance
# https://github.com/2i2c-org/infrastructure/issues/4241
node.kubernetes.io/instance-type: r5.xlarge
2i2c/hub-name: big-binder
cloudMetadata:
blockWithIptables: false
cpu:
Expand Down Expand Up @@ -100,6 +101,7 @@ binderhub-service:
# Schedule dockerApi pods to run on the smallest user nodes only
# https://github.com/2i2c-org/infrastructure/issues/4241
node.kubernetes.io/instance-type: r5.xlarge
2i2c/hub-name: big-binder
ingress:
enabled: true
hosts: [big.binder.opensci.2i2c.cloud]
Expand All @@ -114,6 +116,7 @@ binderhub-service:
# Schedule builder pods to run on the smallest user nodes only
# https://github.com/2i2c-org/infrastructure/issues/4241
node.kubernetes.io/instance-type: r5.xlarge
2i2c/hub-name: big-binder
BinderHub:
base_url: /
hub_url: https://hub.big.binder.opensci.2i2c.cloud
Expand Down
1 change: 1 addition & 0 deletions config/clusters/opensci/climaterisk.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jupyterhub:
tag: "09c3a11f1698"
nodeSelector:
node.kubernetes.io/instance-type: r5.4xlarge
2i2c/hub-name: climaterisk
memory:
guarantee: 15929958203
limit: 15929958203
Expand Down
2 changes: 2 additions & 0 deletions config/clusters/opensci/sciencecore.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ jupyterhub:
singleuserAdmin:
serviceAccountName: admin-sa
singleuser:
nodeSelector:
2i2c/hub-name: sciencecore
defaultUrl: /lab
extraEnv:
SCRATCH_BUCKET: s3://opensci-scratch-sciencecore/$(JUPYTERHUB_USER)
Expand Down
3 changes: 3 additions & 0 deletions config/clusters/opensci/small-binder.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jupyterhub:
# Schedule users on the smallest instance
# https://github.com/2i2c-org/infrastructure/issues/4241
node.kubernetes.io/instance-type: r5.xlarge
2i2c/hub-name: small-binder
cpu:
limit: 2
memory:
Expand Down Expand Up @@ -86,6 +87,7 @@ binderhub-service:
# Schedule dockerApi pods to run on the smallest user nodes only
# https://github.com/2i2c-org/infrastructure/issues/4241
node.kubernetes.io/instance-type: r5.xlarge
2i2c/hub-name: small-binder
ingress:
enabled: true
hosts: [binder.opensci.2i2c.cloud]
Expand All @@ -100,6 +102,7 @@ binderhub-service:
# Schedule builder pods to run on the smallest user nodes only
# https://github.com/2i2c-org/infrastructure/issues/4241
node.kubernetes.io/instance-type: r5.xlarge
2i2c/hub-name: small-binder
BinderHub:
base_url: /
hub_url: https://hub.binder.opensci.2i2c.cloud
Expand Down
2 changes: 2 additions & 0 deletions config/clusters/opensci/staging.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jupyterhub:
name: ""
url: ""
singleuser:
nodeSelector:
2i2c/hub-name: staging
profileList:
- display_name: Choose your environment and resources
slug: only-choice
Expand Down

0 comments on commit e06ef81

Please sign in to comment.