From 5c9326d637566a8c8a5e4fdaf5b9a267b19c15ad Mon Sep 17 00:00:00 2001 From: Simon Li Date: Fri, 3 Nov 2023 14:55:19 +0000 Subject: [PATCH 1/2] Curvenote: reduce number of replicas Only two nodes --- config/curvenote.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config/curvenote.yaml b/config/curvenote.yaml index d2b3ab591..3d55525c0 100644 --- a/config/curvenote.yaml +++ b/config/curvenote.yaml @@ -1,6 +1,7 @@ projectName: curvenote binderhub: + replicas: 1 config: BinderHub: hub_url: https://hub.binder.curvenote.dev @@ -290,6 +291,8 @@ prometheus: ingress-nginx: controller: + autoscaling: + maxReplicas: 2 service: annotations: service.beta.kubernetes.io/aws-load-balancer-scheme: "internet-facing" @@ -311,7 +314,7 @@ priorityClasses: binderhub-container-registry-helper: enabled: true # auth_token: Autogenerated - replicaCount: 2 + replicaCount: 1 serviceAccount: name: binderhub-container-registry-helper annotations: From 880a485bfba7c0cd2e2b92d3656d072d7e8c84a4 Mon Sep 17 00:00:00 2001 From: Simon Li Date: Fri, 3 Nov 2023 15:04:31 +0000 Subject: [PATCH 2/2] Curvenote: Add `priorityClassName: binderhub-core` where supported --- config/curvenote.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/curvenote.yaml b/config/curvenote.yaml index 3d55525c0..2b1aa3d36 100644 --- a/config/curvenote.yaml +++ b/config/curvenote.yaml @@ -278,6 +278,7 @@ grafana: prometheus: enabled: true server: + priorityClassName: binderhub-core persistentVolume: size: 50Gi retention: 30d @@ -291,6 +292,7 @@ prometheus: ingress-nginx: controller: + priorityClassName: binderhub-core autoscaling: maxReplicas: 2 service: