Skip to content

Commit

Permalink
Merge pull request #5113 from sgibson91/nmfs-openscapes/dedicated-nod…
Browse files Browse the repository at this point in the history
…egroups

nmfs-openscapes: create hub-specific nodegroups
  • Loading branch information
sgibson91 authored Nov 15, 2024
2 parents fcc0701 + 85135b3 commit 5c1e6c6
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 3 deletions.
2 changes: 2 additions & 0 deletions config/clusters/nmfs-openscapes/prod.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jupyterhub:
- hosts: [nmfs-openscapes.2i2c.cloud]
secretName: https-auto-tls
singleuser:
nodeSelector:
2i2c/hub-name: prod
extraEnv:
SCRATCH_BUCKET: s3://nmfs-openscapes-scratch/$(JUPYTERHUB_USER)
PERSISTENT_BUCKET: s3://nmfs-openscapes-persistent/$(JUPYTERHUB_USER)
Expand Down
2 changes: 2 additions & 0 deletions config/clusters/nmfs-openscapes/staging.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jupyterhub:
- hosts: [staging.nmfs-openscapes.2i2c.cloud]
secretName: https-auto-tls
singleuser:
nodeSelector:
2i2c/hub-name: staging
extraEnv:
SCRATCH_BUCKET: s3://nmfs-openscapes-scratch-staging/$(JUPYTERHUB_USER)
PERSISTENT_BUCKET: s3://nmfs-openscapes-persistent-staging/$(JUPYTERHUB_USER)
Expand Down
39 changes: 36 additions & 3 deletions eksctl/nmfs-openscapes.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,42 @@ local nodeAz = "us-west-2b";
// A `node.kubernetes.io/instance-type label is added, so pods
// can request a particular kind of node with a nodeSelector
local notebookNodes = [
{ instanceType: "r5.xlarge" },
{ instanceType: "r5.4xlarge" },
{ instanceType: "r5.16xlarge" },
{
instanceType: "r5.xlarge",
namePrefix: "nb-staging",
labels+: { "2i2c/hub-name": "staging" },
tags+: { "2i2c:hub-name": "staging" },
},
{
instanceType: "r5.xlarge",
namePrefix: "nb-prod",
labels+: { "2i2c/hub-name": "prod" },
tags+: { "2i2c:hub-name": "prod" },
},
{
instanceType: "r5.4xlarge",
namePrefix: "nb-staging",
labels+: { "2i2c/hub-name": "staging" },
tags+: { "2i2c:hub-name": "staging" },
},
{
instanceType: "r5.4xlarge",
namePrefix: "nb-prod",
labels+: { "2i2c/hub-name": "prod" },
tags+: { "2i2c:hub-name": "prod" },
},
{
instanceType: "r5.16xlarge",
namePrefix: "nb-staging",
labels+: { "2i2c/hub-name": "staging" },
tags+: { "2i2c:hub-name": "staging" },
},
{
instanceType: "r5.16xlarge",
namePrefix: "nb-prod",
labels+: { "2i2c/hub-name": "prod" },
tags+: { "2i2c:hub-name": "prod" },
},
];
local daskNodes = [];

Expand Down

0 comments on commit 5c1e6c6

Please sign in to comment.