From cf38f3229f9a09cd0860d43671ab1f75c2afda4a Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Tue, 21 May 2024 20:26:48 +0200 Subject: [PATCH] Migrate Radicale to Longhorn --- kubenix-modules/freshrss.nix | 1 - kubenix-modules/radicale.nix | 5 +++++ kubenix-modules/volumes.nix | 19 ++++++++++++++++++- nixos-modules/data-sharing.nix | 1 - 4 files changed, 23 insertions(+), 3 deletions(-) diff --git a/kubenix-modules/freshrss.nix b/kubenix-modules/freshrss.nix index e30d99e..bcb1cec 100644 --- a/kubenix-modules/freshrss.nix +++ b/kubenix-modules/freshrss.nix @@ -67,7 +67,6 @@ lab = { ingresses.freshrss = { host = "rss.kun.is"; - entrypoint = "localsecure"; service = { name = "freshrss"; diff --git a/kubenix-modules/radicale.nix b/kubenix-modules/radicale.nix index 15148e0..c7065db 100644 --- a/kubenix-modules/radicale.nix +++ b/kubenix-modules/radicale.nix @@ -69,6 +69,11 @@ data.persistentVolumeClaim.claimName = "radicale"; config.configMap.name = "radicale"; }; + + securityContext = { + fsGroup = 2999; + fsGroupChangePolicy = "OnRootMismatch"; + }; }; }; }; diff --git a/kubenix-modules/volumes.nix b/kubenix-modules/volumes.nix index b95de25..a616217 100644 --- a/kubenix-modules/volumes.nix +++ b/kubenix-modules/volumes.nix @@ -1,8 +1,26 @@ { + # kubernetes.resources.pods.testje.spec = { + # containers.testje = { + # image = "nginx"; + + # volumeMounts = [ + # { + # name = "radicale"; + # mountPath = "/radicale"; + # } + # ]; + # }; + + # volumes = { + # radicale.persistentVolumeClaim.claimName = "radicale"; + # }; + # }; + lab = { longhornVolumes = { hedgedoc-uploads.storage = "50Mi"; freshrss.storage = "400Mi"; + radicale.storage = "200Mi"; }; nfsVolumes = { @@ -16,7 +34,6 @@ sonarr-config.path = "sonarr/config"; bazarr-config.path = "bazarr/config"; atticd.path = "atticd"; - radicale.path = "radicale"; syncthing.path = "syncthing/config"; kitchenowl.path = "kitchenowl/data"; pihole-data.path = "pihole/data"; diff --git a/nixos-modules/data-sharing.nix b/nixos-modules/data-sharing.nix index b6cc012..a57c4f3 100644 --- a/nixos-modules/data-sharing.nix +++ b/nixos-modules/data-sharing.nix @@ -7,7 +7,6 @@ let "/radicale" "/pihole/data" "/pihole/dnsmasq" - "/traefik/acme" "/forgejo/data" "/forgejo/runner/data" "/forgejo/runner/certs"