feat: Put nextcloud and immich behind tailscale

This commit is contained in:
Pim Kunis 2024-07-25 20:30:21 +02:00
parent 5398db801c
commit 6db856cfe9
4 changed files with 17 additions and 17 deletions

View file

@ -1,4 +1,4 @@
{ { myLib, ... }: {
kubernetes.resources = { kubernetes.resources = {
deployments = { deployments = {
immich.spec = { immich.spec = {
@ -165,6 +165,9 @@
services = { services = {
server.spec = { server.spec = {
type = "LoadBalancer";
loadBalancerIP = myLib.globals.immichIPv4;
selector = { selector = {
app = "immich"; app = "immich";
component = "server"; component = "server";
@ -220,13 +223,9 @@
}; };
lab = { lab = {
ingresses.immich = { tailscaleIngresses.tailscale = {
host = "immich.kun.is"; host = "immich";
service.name = "server";
service = {
name = "server";
portName = "web";
};
}; };
longhorn.persistentVolumeClaim = { longhorn.persistentVolumeClaim = {

View file

@ -1,4 +1,4 @@
{ { myLib, ... }: {
kubernetes.resources = { kubernetes.resources = {
secrets.database.stringData.databasePassword = "ref+sops://secrets/kubernetes.yaml#/nextcloud/databasePassword"; secrets.database.stringData.databasePassword = "ref+sops://secrets/kubernetes.yaml#/nextcloud/databasePassword";
@ -108,6 +108,9 @@
services = { services = {
server.spec = { server.spec = {
type = "LoadBalancer";
loadBalancerIP = myLib.globals.nextcloudIPv4;
selector = { selector = {
app = "nextcloud"; app = "nextcloud";
component = "server"; component = "server";
@ -134,13 +137,9 @@
}; };
lab = { lab = {
ingresses.web = { tailscaleIngresses.tailscale = {
host = "cloud.kun.is"; host = "nextcloud";
service.name = "server";
service = {
name = "server";
portName = "web";
};
}; };
longhorn.persistentVolumeClaim = { longhorn.persistentVolumeClaim = {

View file

@ -82,7 +82,7 @@
}; };
tailscaleIngresses.tailscale = { tailscaleIngresses.tailscale = {
host = "sync"; host = "syncthing";
service.name = "syncthing"; service.name = "syncthing";
}; };
}; };

View file

@ -23,4 +23,6 @@
paperlessIPv4 = "192.168.30.144"; paperlessIPv4 = "192.168.30.144";
radicaleIPv4 = "192.168.30.145"; radicaleIPv4 = "192.168.30.145";
freshrssIPv4 = "192.168.30.146"; freshrssIPv4 = "192.168.30.146";
immichIPv4 = "192.168.30.147";
nextcloudIPv4 = "192.168.30.148";
} }