From c05c1975168b2a9e17d5a1504fa07e284331066a Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Wed, 17 Jan 2024 21:49:26 -0500 Subject: [PATCH 1/2] Adding a temporary writable directory for conda-store server --- .../kubernetes/services/conda-store/server.tf | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/_nebari/stages/kubernetes_services/template/modules/kubernetes/services/conda-store/server.tf b/src/_nebari/stages/kubernetes_services/template/modules/kubernetes/services/conda-store/server.tf index abf1211ee..37e22bfe1 100644 --- a/src/_nebari/stages/kubernetes_services/template/modules/kubernetes/services/conda-store/server.tf +++ b/src/_nebari/stages/kubernetes_services/template/modules/kubernetes/services/conda-store/server.tf @@ -156,6 +156,11 @@ resource "kubernetes_deployment" "server" { name = "secret" mount_path = "/var/lib/conda-store/" } + + volume_mount { + name = "home-volume" + mount_path = "/home/conda" + } } volume { @@ -171,6 +176,13 @@ resource "kubernetes_deployment" "server" { secret_name = kubernetes_secret.conda-store-secret.metadata.0.name } } + + volume { + name = "home-volume" + empty_dir { + size_limit = "1Mi" + } + } } } } From 27f7b5c044fd08f29147b730e14a5c90d8254c91 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 18 Jan 2024 02:55:21 +0000 Subject: [PATCH 2/2] [pre-commit.ci] Apply automatic pre-commit fixes --- .../modules/kubernetes/services/conda-store/server.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/_nebari/stages/kubernetes_services/template/modules/kubernetes/services/conda-store/server.tf b/src/_nebari/stages/kubernetes_services/template/modules/kubernetes/services/conda-store/server.tf index 37e22bfe1..ab9edd87e 100644 --- a/src/_nebari/stages/kubernetes_services/template/modules/kubernetes/services/conda-store/server.tf +++ b/src/_nebari/stages/kubernetes_services/template/modules/kubernetes/services/conda-store/server.tf @@ -160,7 +160,7 @@ resource "kubernetes_deployment" "server" { volume_mount { name = "home-volume" mount_path = "/home/conda" - } + } } volume { @@ -182,7 +182,7 @@ resource "kubernetes_deployment" "server" { empty_dir { size_limit = "1Mi" } - } + } } } }