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 namespace: minecraft-server
spec: spec:
selector: selector:
cursed: minecraft load-balancer: minecraft
type: LoadBalancer type: LoadBalancer
ports: ports:
- name: minecraft - name: minecraft
protocol: TCP protocol: TCP
port: 25565 port: 25565
targetPort: 25565 targetPort: 25565

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