feat: add terrafirmagreg server

This commit is contained in:
2025-10-05 13:19:30 +05:00
parent 38e95eb68d
commit 66998c2fb7
4 changed files with 79 additions and 2 deletions

View File

@@ -13,3 +13,4 @@ tcp:
22: "homelab/gitea-ssh:22" 22: "homelab/gitea-ssh:22"
25565: "minecraft/monifactory-server:25565" 25565: "minecraft/monifactory-server:25565"
25566: "minecraft/gtnh-server:25565" 25566: "minecraft/gtnh-server:25565"
25567: "minecraft/tfg-server:25565"

View File

@@ -28,7 +28,7 @@ spec:
apiVersion: v1 apiVersion: v1
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
metadata: metadata:
name: modpacks name: tfg-data
namespace: minecraft namespace: minecraft
spec: spec:
storageClassName: longhorn-crypto storageClassName: longhorn-crypto
@@ -36,4 +36,4 @@ spec:
- ReadWriteMany - ReadWriteMany
resources: resources:
requests: requests:
storage: 5Gi storage: 10Gi

View File

@@ -28,3 +28,18 @@ spec:
port: 25565 port: 25565
selector: selector:
app: gtnh-server 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

View File

@@ -120,3 +120,64 @@ spec:
- name: gtnh-data - name: gtnh-data
persistentVolumeClaim: persistentVolumeClaim:
claimName: gtnh-data 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