2024-02-20 23:50:49 +00:00
|
|
|
---
|
|
|
|
# --------------------------------------------------
|
|
|
|
# -- Extensions values
|
|
|
|
# --------------------------------------------------
|
|
|
|
service-account:
|
|
|
|
enabled: true
|
|
|
|
resources:
|
|
|
|
- name: minecraft-exporter
|
|
|
|
label:
|
|
|
|
app: minecraft-minecraft-metrics
|
|
|
|
endpoints:
|
|
|
|
port: metrics
|
|
|
|
# ------------------------------------------
|
|
|
|
# -- Istio extenstion. Just because I'm
|
|
|
|
# -- not using ingress nginx
|
|
|
|
# ------------------------------------------
|
2024-06-02 13:44:16 +00:00
|
|
|
traefik:
|
2024-02-20 23:50:49 +00:00
|
|
|
enabled: true
|
2024-06-02 13:44:16 +00:00
|
|
|
tcpRoutes:
|
2024-02-20 23:50:49 +00:00
|
|
|
- name: minecraft-tcp
|
2024-06-02 13:44:16 +00:00
|
|
|
entrypoint: minecraft
|
2024-02-20 23:50:49 +00:00
|
|
|
gateway: istio-system/badhouseplants-minecraft
|
2024-06-02 13:44:16 +00:00
|
|
|
match: HostSNI(`*`)
|
2024-02-20 23:50:49 +00:00
|
|
|
service: minecraft-minecraft
|
|
|
|
port: 25565
|
|
|
|
# --------------------------------------------------
|
|
|
|
# -- Main values
|
|
|
|
# --------------------------------------------------
|
|
|
|
image:
|
2024-06-03 18:59:12 +00:00
|
|
|
#tag: java17-graalvm
|
2024-02-20 23:50:49 +00:00
|
|
|
pullPolicy: Always
|
|
|
|
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
memory: 3Gi
|
|
|
|
cpu: 256m
|
|
|
|
limits:
|
|
|
|
memory: 3Gi
|
|
|
|
|
2024-06-03 18:59:12 +00:00
|
|
|
#lifecycle:
|
|
|
|
# postStart:
|
|
|
|
# - bash
|
|
|
|
# - -c
|
|
|
|
# - for i in {1..100}; do mc-health && break || sleep 20; done && rcon-cli setpassword 11223345
|
2024-02-20 23:50:49 +00:00
|
|
|
|
|
|
|
readinessProbe:
|
|
|
|
command:
|
|
|
|
- mc-health
|
|
|
|
periodSeconds: 20
|
|
|
|
failureThreshold: 50
|
|
|
|
timeoutSeconds: 10
|
|
|
|
livenessProbe:
|
|
|
|
timeoutSeconds: 10
|
|
|
|
|
|
|
|
minecraftServer:
|
|
|
|
overrideServerProperties: true
|
|
|
|
eula: "TRUE"
|
|
|
|
onlineMode: false
|
|
|
|
difficulty: hard
|
2024-06-03 18:59:12 +00:00
|
|
|
hardcore: false
|
2024-02-20 23:50:49 +00:00
|
|
|
version: 1.20.1
|
|
|
|
maxWorldSize: 90000
|
2024-06-03 18:59:12 +00:00
|
|
|
type: "FORGE"
|
|
|
|
forgeInstallerUrl: https://maven.minecraftforge.net/net/minecraftforge/forge/1.20.2-48.1.0/forge-1.20.2-48.1.0-installer.jar
|
2024-02-20 23:50:49 +00:00
|
|
|
paperDownloadUrl: https://api.papermc.io/v2/projects/paper/versions/1.20.1/builds/170/downloads/paper-1.20.1-170.jar
|
|
|
|
gameMode: survival
|
|
|
|
pvp: true
|
|
|
|
rcon:
|
|
|
|
enabled: true
|
|
|
|
withGeneratedPassword: false
|
|
|
|
port: 25575
|
|
|
|
serviceType: ClusterIP
|
|
|
|
extraPorts:
|
|
|
|
- name: metrics
|
|
|
|
containerPort: 9225
|
|
|
|
protocol: TCP
|
|
|
|
service:
|
|
|
|
enabled: true
|
|
|
|
embedded: false
|
|
|
|
labels:
|
|
|
|
exporter: minecraft
|
|
|
|
type: ClusterIP
|
|
|
|
port: 9925
|
|
|
|
ingress:
|
|
|
|
enabled: false
|
|
|
|
persistence:
|
|
|
|
dataDir:
|
|
|
|
enabled: true
|
|
|
|
Size: 15Gi
|
|
|
|
mcbackup:
|
|
|
|
enabled: false
|
|
|
|
backupInterval: 2h
|
|
|
|
pauseIfNoPlayers: "false"
|
|
|
|
pruneBackupsDays: 2
|
|
|
|
rconRetries: 5
|
|
|
|
rconRetryInterval: 10s
|
|
|
|
excludes: "*.jar,cache,logs"
|
|
|
|
backupMethod: restic
|
|
|
|
resticRepository: s3:https://s3.e.badhouseplants.net:443/restic/minecraft
|
|
|
|
resticAdditionalTags: "mc_backups"
|
|
|
|
pruneResticRetention: "--keep-last 12 --keep-daily 1 --keep-weekly 2 --keep-monthly 2 --keep-yearly 2"
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
memory: 512Mi
|
|
|
|
cpu: 100m
|
|
|
|
persistence:
|
|
|
|
backupDir:
|
|
|
|
enabled: false
|
|
|
|
# ---------------------------------------------
|
|
|
|
# -- Install Plugins
|
|
|
|
# ---------------------------------------------
|
|
|
|
initContainers:
|
2024-06-03 18:59:12 +00:00
|
|
|
- name: 0-install-create-plugin
|
2024-02-20 23:50:49 +00:00
|
|
|
image: alpine/curl
|
|
|
|
command:
|
|
|
|
- curl
|
|
|
|
- -L
|
2024-06-03 18:59:12 +00:00
|
|
|
- "https://www.curseforge.com/api/v1/mods/328085/files/4835191/download"
|
2024-02-20 23:50:49 +00:00
|
|
|
- -o
|
2024-06-03 18:59:12 +00:00
|
|
|
- /data/mods/create.jar
|
2024-02-20 23:50:49 +00:00
|
|
|
volumeMounts:
|
|
|
|
- name: plugins
|
2024-06-03 18:59:12 +00:00
|
|
|
mountPath: /data/mods
|
2024-02-20 23:50:49 +00:00
|
|
|
readOnly: false
|
2024-06-03 18:59:12 +00:00
|
|
|
- name: 0-install-vic-plugin
|
2024-02-20 23:50:49 +00:00
|
|
|
image: alpine/curl
|
|
|
|
command:
|
|
|
|
- curl
|
|
|
|
- -L
|
2024-06-03 18:59:12 +00:00
|
|
|
- https://www.curseforge.com/api/v1/mods/961053/files/5367445/download
|
2024-02-20 23:50:49 +00:00
|
|
|
- -o
|
2024-06-03 18:59:12 +00:00
|
|
|
- /data/mods/vic.jar
|
2024-02-20 23:50:49 +00:00
|
|
|
volumeMounts:
|
|
|
|
- name: plugins
|
2024-06-03 18:59:12 +00:00
|
|
|
mountPath: /data/mods
|
2024-02-20 23:50:49 +00:00
|
|
|
readOnly: false
|
2024-06-03 18:59:12 +00:00
|
|
|
- name: 0-install-gecko-plugin
|
2024-02-20 23:50:49 +00:00
|
|
|
image: alpine/curl
|
|
|
|
command:
|
|
|
|
- curl
|
|
|
|
- -L
|
2024-06-03 18:59:12 +00:00
|
|
|
- https://www.curseforge.com/api/v1/mods/388172/files/5386950/download
|
2024-02-20 23:50:49 +00:00
|
|
|
- -o
|
2024-06-03 18:59:12 +00:00
|
|
|
- /data/mods/geckolib.jar
|
2024-02-20 23:50:49 +00:00
|
|
|
volumeMounts:
|
|
|
|
- name: plugins
|
2024-06-03 18:59:12 +00:00
|
|
|
mountPath: /data/mods
|
2024-02-20 23:50:49 +00:00
|
|
|
readOnly: false
|
2024-06-03 18:59:12 +00:00
|
|
|
|
2024-02-20 23:50:49 +00:00
|
|
|
extraVolumes:
|
|
|
|
- volumeMounts:
|
|
|
|
- name: plugins
|
2024-06-03 18:59:12 +00:00
|
|
|
mountPath: /data/mods
|
2024-02-20 23:50:49 +00:00
|
|
|
readOnly: false
|
|
|
|
volumes:
|
|
|
|
- name: plugins
|
|
|
|
emptyDir:
|
|
|
|
sizeLimit: 500Mi
|