From ccb5892d00394f2dc6aa0e78fce2a88141155d28 Mon Sep 17 00:00:00 2001 From: Damian Avila Date: Thu, 28 Oct 2021 11:00:26 -0300 Subject: [PATCH 1/2] Dedicated nodes pool for the Paleohack hub event We start with min 5 nodes so the cluster is pre-warmed before the users arrive. We use an specific "paleo" label selector and we pre-pull the images. --- config/hubs/2i2c.cluster.yaml | 5 +++++ terraform/gcp/projects/pilot-hubs.tfvars | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/config/hubs/2i2c.cluster.yaml b/config/hubs/2i2c.cluster.yaml index 79113546fd..ff1322890b 100644 --- a/config/hubs/2i2c.cluster.yaml +++ b/config/hubs/2i2c.cluster.yaml @@ -342,6 +342,9 @@ hubs: connection: github config: jupyterhub: + prePuller: + continuous: + enabled: true scheduling: userPlaceholder: # Not needed anymore, hackathon is over @@ -374,6 +377,8 @@ hubs: image: name: quay.io/2i2c/paleohack-2021 tag: d8c26cd01c8a + nodeSelector: + 2i2c.org/community: paleo hub: config: Authenticator: diff --git a/terraform/gcp/projects/pilot-hubs.tfvars b/terraform/gcp/projects/pilot-hubs.tfvars index 74e669bb93..a999929c6a 100644 --- a/terraform/gcp/projects/pilot-hubs.tfvars +++ b/terraform/gcp/projects/pilot-hubs.tfvars @@ -15,6 +15,14 @@ notebook_nodes = { max : 20, machine_type : "n1-highmem-4", labels: { } + }, + "paleo": { + min: 5, + max: 20, + machine_type: "n1-highmem-4", + labels: { + "2i2c.org/community": "paleo" + } } } From 10715a2013af776ffc8890dca512a27b02c6c0d6 Mon Sep 17 00:00:00 2001 From: Damian Avila Date: Thu, 28 Oct 2021 11:56:47 -0300 Subject: [PATCH 2/2] Update paleo image to the latest --- config/hubs/2i2c.cluster.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/hubs/2i2c.cluster.yaml b/config/hubs/2i2c.cluster.yaml index ff1322890b..a77e74edd9 100644 --- a/config/hubs/2i2c.cluster.yaml +++ b/config/hubs/2i2c.cluster.yaml @@ -376,7 +376,7 @@ hubs: limit: 2 image: name: quay.io/2i2c/paleohack-2021 - tag: d8c26cd01c8a + tag: d6234e037f4f nodeSelector: 2i2c.org/community: paleo hub: