diff --git a/helm/values/nginx-internal.values.yaml b/helm/values/nginx-internal.values.yaml index 6cf52ed..fb74f43 100644 --- a/helm/values/nginx-internal.values.yaml +++ b/helm/values/nginx-internal.values.yaml @@ -13,3 +13,4 @@ tcp: 22: "homelab/gitea-ssh:22" 25565: "minecraft/monifactory-server:25565" 25566: "minecraft/gtnh-server:25565" + 25567: "minecraft/tfg-server:25565" diff --git a/minecraft/pvc.yaml b/minecraft/pvc.yaml index a439ae9..1a64c0d 100644 --- a/minecraft/pvc.yaml +++ b/minecraft/pvc.yaml @@ -28,7 +28,7 @@ spec: apiVersion: v1 kind: PersistentVolumeClaim metadata: - name: modpacks + name: tfg-data namespace: minecraft spec: storageClassName: longhorn-crypto @@ -36,4 +36,4 @@ spec: - ReadWriteMany resources: requests: - storage: 5Gi + storage: 10Gi diff --git a/minecraft/service.yaml b/minecraft/service.yaml index 5cbd790..96c31cc 100644 --- a/minecraft/service.yaml +++ b/minecraft/service.yaml @@ -28,3 +28,18 @@ spec: port: 25565 selector: app: gtnh-server +--- +apiVersion: v1 +kind: Service +metadata: + name: tfg-server + namespace: minecraft + labels: + app: tfg-server +spec: + type: ClusterIP + ports: + - name: tfg + port: 25565 + selector: + app: tfg-server diff --git a/minecraft/statefulset.yaml b/minecraft/statefulset.yaml index 08a2767..4022cfb 100644 --- a/minecraft/statefulset.yaml +++ b/minecraft/statefulset.yaml @@ -120,3 +120,64 @@ spec: - name: gtnh-data persistentVolumeClaim: claimName: gtnh-data +--- +apiVersion: apps/v1 +kind: StatefulSet +metadata: + name: tfg-server + namespace: minecraft +spec: + selector: + matchLabels: + app: tfg-server + template: + metadata: + labels: + app: tfg-server + spec: + containers: + - name: tfg-server + image: itzg/minecraft-server:java17 + env: + - name: EULA + value: "TRUE" + - name: MODE + value: "survival" + - name: MODPACK_PLATFORM + value: "AUTO_CURSEFORGE" + - name: CF_API_KEY + valueFrom: + secretKeyRef: + name: curseforge + key: credential + - name: CF_PAGE_URL + value: "https://www.curseforge.com/minecraft/modpacks/terrafirmagreg-modern/" + - name: VERSION + value: "1.20.1" + - name: INIT_MEMORY + value: 2G + - name: MAX_MEMORY + value: 6G + - name: ALLOW_FLIGHT + value: "TRUE" + - name: ENABLE_ROLLING_LOGS + value: "TRUE" + - name: USE_MEOWICE_FLAGS + value: "TRUE" + ports: + - name: minecraft + containerPort: 25565 + resources: + requests: + cpu: 2 + memory: "2Gi" + limits: + cpu: 6 + memory: "6Gi" + volumeMounts: + - name: tfg-data + mountPath: /data + volumes: + - name: tfg-data + persistentVolumeClaim: + claimName: tfg-data