From 518c0eb121b025fce7d8679a0e636aca4578c470 Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Tue, 21 May 2024 20:41:24 +0200 Subject: [PATCH] Migrate Minecraft to Longhorn --- kubenix-modules/minecraft.nix | 5 +++++ kubenix-modules/volumes.nix | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/kubenix-modules/minecraft.nix b/kubenix-modules/minecraft.nix index 4ce6940..a103db6 100644 --- a/kubenix-modules/minecraft.nix +++ b/kubenix-modules/minecraft.nix @@ -24,6 +24,11 @@ mountPath = "/data"; }]; }; + + securityContext = { + fsGroup = 1000; + fsGroupChangePolicy = "OnRootMismatch"; + }; }; }; }; diff --git a/kubenix-modules/volumes.nix b/kubenix-modules/volumes.nix index a616217..004a3d1 100644 --- a/kubenix-modules/volumes.nix +++ b/kubenix-modules/volumes.nix @@ -5,14 +5,14 @@ # volumeMounts = [ # { - # name = "radicale"; - # mountPath = "/radicale"; + # name = "minecraft"; + # mountPath = "/minecraft"; # } # ]; # }; # volumes = { - # radicale.persistentVolumeClaim.claimName = "radicale"; + # minecraft.persistentVolumeClaim.claimName = "minecraft"; # }; # }; @@ -21,6 +21,7 @@ hedgedoc-uploads.storage = "50Mi"; freshrss.storage = "400Mi"; radicale.storage = "200Mi"; + minecraft.storage = "1Gi"; }; nfsVolumes = { @@ -41,7 +42,6 @@ paperless-ngx-redisdata.path = "paperless-ngx/redisdata"; paperless-ngx-data.path = "paperless-ngx/data"; nextcloud.path = "nextcloud/data"; - minecraft.path = "minecraft"; forgejo.path = "forgejo/data"; forgejo-runner-data.path = "forgejo/runner/data"; forgejo-runner-certs.path = "forgejo/runner/certs";