From affbb4a1e5f9b4a7cff8a4f4e5eea7a2f070edef Mon Sep 17 00:00:00 2001 From: YuviPanda Date: Mon, 28 Aug 2023 13:11:32 -0700 Subject: [PATCH 1/2] Cull pods that run for longer than 7 days Ref https://github.com/2i2c-org/infrastructure/issues/3015 --- helm-charts/basehub/values.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/helm-charts/basehub/values.yaml b/helm-charts/basehub/values.yaml index 377a76e456..421ee3e692 100644 --- a/helm-charts/basehub/values.yaml +++ b/helm-charts/basehub/values.yaml @@ -58,6 +58,9 @@ inClusterNFS: global: {} jupyterhub: + cull: + # Don't allow any nodes to run for longer than 7 days + maxAge: 604800 # 7 days in seconds custom: auth: anonymizeUsername: false From 14b7b52efc733533af4fd921c33f1d7e8c39d9bf Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Thu, 19 Oct 2023 13:18:42 +0200 Subject: [PATCH 2/2] Tweak comment --- helm-charts/basehub/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm-charts/basehub/values.yaml b/helm-charts/basehub/values.yaml index 421ee3e692..68ea9ae6ce 100644 --- a/helm-charts/basehub/values.yaml +++ b/helm-charts/basehub/values.yaml @@ -59,7 +59,7 @@ global: {} jupyterhub: cull: - # Don't allow any nodes to run for longer than 7 days + # Don't allow any user pods to run for longer than 7 days by default maxAge: 604800 # 7 days in seconds custom: auth: