Move syncthing off Longhorn
This commit is contained in:
parent
415c60be45
commit
777bb629a2
4 changed files with 12 additions and 23 deletions
|
@ -44,7 +44,7 @@ _: {
|
||||||
inbucketIPv4 = "192.168.30.130";
|
inbucketIPv4 = "192.168.30.130";
|
||||||
piholeIPv4 = "192.168.30.131";
|
piholeIPv4 = "192.168.30.131";
|
||||||
gitIPv4 = "192.168.30.132";
|
gitIPv4 = "192.168.30.132";
|
||||||
transmissionIPv4 = "192.168.30.133";
|
delugeIPv4 = "192.168.30.133";
|
||||||
bind9IPv4 = "192.168.30.134";
|
bind9IPv4 = "192.168.30.134";
|
||||||
dnsmasqIPv4 = "192.168.30.135";
|
dnsmasqIPv4 = "192.168.30.135";
|
||||||
minecraftIPv4 = "192.168.30.136";
|
minecraftIPv4 = "192.168.30.136";
|
||||||
|
|
|
@ -93,21 +93,17 @@
|
||||||
hedgedoc-uploads.storage = "50Mi";
|
hedgedoc-uploads.storage = "50Mi";
|
||||||
hedgedoc-db.storage = "100Mi";
|
hedgedoc-db.storage = "100Mi";
|
||||||
kitchenowl.storage = "100Mi";
|
kitchenowl.storage = "100Mi";
|
||||||
forgejo.storage = "20Gi";
|
|
||||||
paperless-data.storage = "10Gi";
|
paperless-data.storage = "10Gi";
|
||||||
paperless-redisdata.storage = "20Mi";
|
paperless-redisdata.storage = "20Mi";
|
||||||
paperless-db.storage = "150Mi";
|
paperless-db.storage = "150Mi";
|
||||||
syncthing.storage = "400Mi";
|
|
||||||
pihole-data.storage = "750Mi";
|
pihole-data.storage = "750Mi";
|
||||||
pihole-dnsmasq.storage = "16Mi";
|
pihole-dnsmasq.storage = "16Mi";
|
||||||
immich.storage = "50Gi";
|
immich.storage = "50Gi";
|
||||||
immich-db.storage = "5Gi";
|
immich-db.storage = "5Gi";
|
||||||
attic.storage = "15Gi";
|
attic.storage = "15Gi";
|
||||||
attic-db.storage = "150Mi";
|
attic-db.storage = "150Mi";
|
||||||
transmission.storage = "25Mi";
|
|
||||||
minecraft.storage = "1Gi";
|
minecraft.storage = "1Gi";
|
||||||
ntfy.storage = "300Mi";
|
ntfy.storage = "300Mi";
|
||||||
keepassxc.storage = "100Mi";
|
|
||||||
authentik-db.storage = "10Gi";
|
authentik-db.storage = "10Gi";
|
||||||
authentik-redis.storage = "5Gi";
|
authentik-redis.storage = "5Gi";
|
||||||
mealie.storage = "3Gi";
|
mealie.storage = "3Gi";
|
||||||
|
|
|
@ -481,7 +481,7 @@ in {
|
||||||
deluge = lib.mkIf cfg.deluge.enable {
|
deluge = lib.mkIf cfg.deluge.enable {
|
||||||
spec = {
|
spec = {
|
||||||
type = "LoadBalancer";
|
type = "LoadBalancer";
|
||||||
loadBalancerIP = globals.transmissionIPv4;
|
loadBalancerIP = globals.delugeIPv4;
|
||||||
|
|
||||||
selector = {
|
selector = {
|
||||||
app = "media";
|
app = "media";
|
||||||
|
|
|
@ -8,8 +8,6 @@
|
||||||
|
|
||||||
config = lib.mkIf config.syncthing.enable {
|
config = lib.mkIf config.syncthing.enable {
|
||||||
kubernetes.resources = {
|
kubernetes.resources = {
|
||||||
serviceAccounts.syncthing = {};
|
|
||||||
|
|
||||||
deployments.syncthing.spec = {
|
deployments.syncthing.spec = {
|
||||||
selector.matchLabels.app = "syncthing";
|
selector.matchLabels.app = "syncthing";
|
||||||
|
|
||||||
|
@ -26,7 +24,7 @@
|
||||||
metadata.labels.app = "syncthing";
|
metadata.labels.app = "syncthing";
|
||||||
|
|
||||||
spec = {
|
spec = {
|
||||||
serviceAccountName = "syncthing";
|
nodeName = "jefke";
|
||||||
|
|
||||||
containers.syncthing = {
|
containers.syncthing = {
|
||||||
image = globals.images.syncthing;
|
image = globals.images.syncthing;
|
||||||
|
@ -52,8 +50,15 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
volumes = {
|
volumes = {
|
||||||
config.persistentVolumeClaim.claimName = "config";
|
keepassxc.hostPath = {
|
||||||
keepassxc.persistentVolumeClaim.claimName = "keepassxc";
|
path = "/mnt/longhorn/persistent/volumes/keepassxc";
|
||||||
|
type = "Directory";
|
||||||
|
};
|
||||||
|
|
||||||
|
config.hostPath = {
|
||||||
|
path = "/mnt/longhorn/persistent/volumes/syncthing";
|
||||||
|
type = "Directory";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
securityContext = {
|
securityContext = {
|
||||||
|
@ -77,18 +82,6 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
lab = {
|
lab = {
|
||||||
longhorn.persistentVolumeClaim = {
|
|
||||||
config = {
|
|
||||||
volumeName = "syncthing";
|
|
||||||
storage = "400Mi";
|
|
||||||
};
|
|
||||||
|
|
||||||
keepassxc = {
|
|
||||||
volumeName = "keepassxc";
|
|
||||||
storage = "100Mi";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
tailscaleIngresses.tailscale = {
|
tailscaleIngresses.tailscale = {
|
||||||
host = "syncthing";
|
host = "syncthing";
|
||||||
service.name = "syncthing";
|
service.name = "syncthing";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue