From a0036d250191726c14df331be47cdc22419a2913 Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Wed, 28 May 2025 22:16:43 +0200 Subject: [PATCH] Remove Minecraft --- README.md | 1 - deployments.nix | 5 --- globals.nix | 2 -- modules/bootstrap-default.nix | 2 -- modules/default.nix | 1 - modules/minecraft.nix | 59 ----------------------------------- 6 files changed, 70 deletions(-) delete mode 100644 modules/minecraft.nix diff --git a/README.md b/README.md index e4bcd63..d6888cd 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,6 @@ Legend: | ✅ | `freshrss/freshrss` | | | ✅ | `ubuntu/bind9` | | | ✅ | `quay.io/hedgedoc/hedgedoc` | | -| 🫤 | `itzg/minecraft-server` | | | 🫤 | `teddysun/kms` | | | 🫤 | `mpepping/cyberchef` | | diff --git a/deployments.nix b/deployments.nix index 3a9c4f3..0764427 100644 --- a/deployments.nix +++ b/deployments.nix @@ -104,11 +104,6 @@ namespace = "kube-system"; }; - minecraft = { - module.minecraft.enable = true; - namespace = "minecraft"; - }; - tailscale = { module.tailscale.enable = true; namespace = "tailscale"; diff --git a/globals.nix b/globals.nix index 89a2b74..d021288 100644 --- a/globals.nix +++ b/globals.nix @@ -20,7 +20,6 @@ _: { freshrss = "freshrss/freshrss:1.26.2"; bind9 = "ubuntu/bind9:9.18-22.04_beta"; hedgedoc = "quay.io/hedgedoc/hedgedoc:1.10.3"; - minecraft = "itzg/minecraft-server:latest"; }; nodeLabels = { @@ -45,7 +44,6 @@ _: { delugeIPv4 = "192.168.30.133"; bind9IPv4 = "192.168.30.134"; dnsmasqIPv4 = "192.168.30.135"; - minecraftIPv4 = "192.168.30.136"; jellyseerrIPv4 = "192.168.30.137"; syncthingIPv4 = "192.168.30.138"; longhornIPv4 = "192.168.30.139"; diff --git a/modules/bootstrap-default.nix b/modules/bootstrap-default.nix index 6d9881e..da4d933 100644 --- a/modules/bootstrap-default.nix +++ b/modules/bootstrap-default.nix @@ -54,7 +54,6 @@ inbucket = {}; dns = {}; media = {}; - minecraft = {}; tailscale = {}; ntfy = {}; authentik = {}; @@ -87,7 +86,6 @@ lab = { longhorn.persistentVolume = { - minecraft.storage = "1Gi"; authentik-db.storage = "10Gi"; authentik-redis.storage = "5Gi"; mealie.storage = "3Gi"; diff --git a/modules/default.nix b/modules/default.nix index d5b64f8..9a11292 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -27,7 +27,6 @@ ./traefik.nix ./tailscale.nix ./ntfy.nix - ./minecraft.nix ./authentik.nix ./mealie.nix ]; diff --git a/modules/minecraft.nix b/modules/minecraft.nix deleted file mode 100644 index 3e0a8f9..0000000 --- a/modules/minecraft.nix +++ /dev/null @@ -1,59 +0,0 @@ -{ - lib, - config, - globals, - ... -}: { - options.minecraft.enable = lib.mkEnableOption "minecraft"; - - config = lib.mkIf config.minecraft.enable { - kubernetes.resources = { - deployments.minecraft.spec = { - selector.matchLabels.app = "minecraft"; - - template = { - metadata.labels.app = "minecraft"; - - spec = { - volumes.data.persistentVolumeClaim.claimName = "data"; - - containers.minecraft = { - image = globals.images.minecraft; - ports.minecraft.containerPort = 25565; - - env.EULA.value = "TRUE"; - - volumeMounts = [ - { - name = "data"; - mountPath = "/data"; - } - ]; - }; - - securityContext = { - fsGroup = 1000; - fsGroupChangePolicy = "OnRootMismatch"; - }; - }; - }; - }; - - services.minecraft.spec = { - type = "LoadBalancer"; - loadBalancerIP = globals.minecraftIPv4; - selector.app = "minecraft"; - - ports.minecraft = { - port = 25565; - targetPort = "minecraft"; - }; - }; - }; - - lab.longhorn.persistentVolumeClaim.data = { - volumeName = "minecraft"; - storage = "1Gi"; - }; - }; -}