refactor(minecraft): split directories & add forge

main
sgoudham 1 year ago
parent bf4f2f8a9a
commit ab25daddf7
Signed by: hammy
GPG Key ID: 44E818FD5457EEA4

@ -0,0 +1,90 @@
resources:
requests:
memory: "7512M"
limits:
memory: "8512M"
strategyType: Recreate
livenessProbe:
command:
- mc-health
initialDelaySeconds: 30
periodSeconds: 5
failureThreshold: 20
successThreshold: 1
timeoutSeconds: 1
readinessProbe:
command:
- mc-health
initialDelaySeconds: 30
periodSeconds: 5
failureThreshold: 20
successThreshold: 1
timeoutSeconds: 1
startupProbe:
command:
- mc-health
enabled: false
failureThreshold: 30
periodSeconds: 10
deploymentLabels:
load-balancer: minecraft
podLabels:
load-balancer: minecraft
minecraftServer:
eula: "TRUE"
version: "1.20.1"
type: "FORGE"
forgeVersion: "47.1.33"
difficulty: normal
whitelist: "Hamothy_,Aishwxrya"
ops: "Hamothy_,Aishwxrya"
viewDistance: 32
motd: "Criminal Offensive Side-EYE"
pvp: true
levelType: DEFAULT
worldSaveName: ForgeModdedSurvival
memory: 6512M
maxWorldSize: 5999968
rcon:
enabled: true
existingSecret: minecraft-rcon
secretKey: rcon-password
persistence:
dataDir:
enabled: true
Size: 10Gi
mcbackup:
enabled: true
image:
repository: itzg/mc-backup
tag: latest
pullPolicy: IfNotPresent
initialDelay: 2m
backupInterval: "2h"
pauseIfNoPlayers: "true"
pruneBackupsDays: 3
rconRetries: 5
rconRetryInterval: 10s
excludes: "*.jar,cache,logs"
backupMethod: tar
destDir: /backups
linkLatest: "true"
compressMethod: "zstd"
resources:
requests:
memory: 512Mi
persistence:
backupDir:
enabled: true
Size: 20Gi

@ -5,10 +5,10 @@ metadata:
namespace: minecraft-server
spec:
selector:
cursed: minecraft
load-balancer: minecraft
type: LoadBalancer
ports:
- name: minecraft
protocol: TCP
port: 25565
targetPort: 25565
targetPort: 25565

@ -1,6 +1,8 @@
resources:
requests:
memory: 3096Mi
memory: "3096M"
limits:
memory: "4096M"
strategyType: Recreate
@ -27,21 +29,26 @@ startupProbe:
failureThreshold: 30
periodSeconds: 10
deploymentLabels:
load-balancer: minecraft
podLabels:
load-balancer: minecraft
minecraftServer:
eula: "TRUE"
version: "1.19.4"
type: "VANILLA"
difficulty: normal
whitelist: "Hamothy_,Aishwxyra"
viewDistance: 16
whitelist: "Hamothy_,Aishwxrya"
ops: "Hamothy_,Aishwxrya"
viewDistance: 32
motd: "Criminal Offensive Side-EYE"
pvp: true
levelType: DEFAULT
worldSaveName: MyWorld
memory: 2512M
maxWorldSize: 5999968
overrideServerProperties: true
serviceType: ClusterIP
servicePort: 25565
rcon:
enabled: true
@ -64,14 +71,14 @@ mcbackup:
initialDelay: 2m
backupInterval: "2h"
pauseIfNoPlayers: "true"
pruneBackupsDays: 14
pruneBackupsDays: 3
rconRetries: 5
rconRetryInterval: 10s
excludes: "*.jar,cache,logs"
backupMethod: tar
destDir: /backups
linkLatest: "false"
compressMethod: "gzip"
linkLatest: "true"
compressMethod: "zstd"
resources:
requests:
@ -81,8 +88,3 @@ mcbackup:
backupDir:
enabled: true
Size: 20Gi
deploymentLabels:
cursed: minecraft
podLabels:
cursed: minecraft
Loading…
Cancel
Save