Migrate Nextcloud to Longhorn

This commit is contained in:
Pim Kunis 2024-05-21 22:35:46 +02:00
parent 518c0eb121
commit 95639457f8
3 changed files with 44 additions and 39 deletions

View file

@ -35,6 +35,11 @@
mountPath = "/var/www/html"; mountPath = "/var/www/html";
}]; }];
}; };
securityContext = {
fsGroup = 33;
fsGroupChangePolicy = "OnRootMismatch";
};
}; };
}; };
}; };

View file

@ -6,46 +6,46 @@
TZ = "Europe/Amsterdam"; TZ = "Europe/Amsterdam";
}; };
deployments.syncthing = { # deployments.syncthing = {
metadata.labels.app = "syncthing"; # metadata.labels.app = "syncthing";
spec = { # spec = {
selector.matchLabels.app = "syncthing"; # selector.matchLabels.app = "syncthing";
template = { # template = {
metadata.labels.app = "syncthing"; # metadata.labels.app = "syncthing";
spec = { # spec = {
containers.syncthing = { # containers.syncthing = {
image = "lscr.io/linuxserver/syncthing:1.23.6"; # image = "lscr.io/linuxserver/syncthing:1.23.6";
envFrom = [{ configMapRef.name = "syncthing"; }]; # envFrom = [{ configMapRef.name = "syncthing"; }];
ports.web.containerPort = 8384; # ports.web.containerPort = 8384;
volumeMounts = [ # volumeMounts = [
{ # {
name = "config"; # name = "config";
mountPath = "/config"; # mountPath = "/config";
} # }
{ # {
name = "nextcloud-data"; # name = "nextcloud-data";
mountPath = "/data"; # mountPath = "/data";
} # }
{ # {
name = "music"; # name = "music";
mountPath = "/music"; # mountPath = "/music";
} # }
]; # ];
}; # };
volumes = { # volumes = {
config.persistentVolumeClaim.claimName = "syncthing"; # config.persistentVolumeClaim.claimName = "syncthing";
nextcloud-data.persistentVolumeClaim.claimName = "nextcloud"; # nextcloud-data.persistentVolumeClaim.claimName = "nextcloud";
music.persistentVolumeClaim.claimName = "music"; # music.persistentVolumeClaim.claimName = "music";
}; # };
}; # };
}; # };
}; # };
}; # };
services.syncthing.spec = { services.syncthing.spec = {
selector.app = "syncthing"; selector.app = "syncthing";

View file

@ -5,14 +5,14 @@
# volumeMounts = [ # volumeMounts = [
# { # {
# name = "minecraft"; # name = "nextcloud";
# mountPath = "/minecraft"; # mountPath = "/nextcloud";
# } # }
# ]; # ];
# }; # };
# volumes = { # volumes = {
# minecraft.persistentVolumeClaim.claimName = "minecraft"; # nextcloud.persistentVolumeClaim.claimName = "nextcloud";
# }; # };
# }; # };
@ -22,6 +22,7 @@
freshrss.storage = "400Mi"; freshrss.storage = "400Mi";
radicale.storage = "200Mi"; radicale.storage = "200Mi";
minecraft.storage = "1Gi"; minecraft.storage = "1Gi";
nextcloud.storage = "50Gi";
}; };
nfsVolumes = { nfsVolumes = {
@ -41,7 +42,6 @@
pihole-dnsmasq.path = "pihole/dnsmasq"; pihole-dnsmasq.path = "pihole/dnsmasq";
paperless-ngx-redisdata.path = "paperless-ngx/redisdata"; paperless-ngx-redisdata.path = "paperless-ngx/redisdata";
paperless-ngx-data.path = "paperless-ngx/data"; paperless-ngx-data.path = "paperless-ngx/data";
nextcloud.path = "nextcloud/data";
forgejo.path = "forgejo/data"; forgejo.path = "forgejo/data";
forgejo-runner-data.path = "forgejo/runner/data"; forgejo-runner-data.path = "forgejo/runner/data";
forgejo-runner-certs.path = "forgejo/runner/certs"; forgejo-runner-certs.path = "forgejo/runner/certs";