159 lines
3.8 KiB
YAML
159 lines
3.8 KiB
YAML
---
|
|
# --------------------------------------------------
|
|
# -- 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
|
|
# ------------------------------------------
|
|
traefik:
|
|
enabled: true
|
|
tcpRoutes:
|
|
- name: minecraft-tcp
|
|
entrypoint: minecraft
|
|
gateway: istio-system/badhouseplants-minecraft
|
|
match: HostSNI(`*`)
|
|
service: minecraft-minecraft
|
|
port: 25565
|
|
# --------------------------------------------------
|
|
# -- Main values
|
|
# --------------------------------------------------
|
|
image:
|
|
#tag: java17-graalvm
|
|
pullPolicy: Always
|
|
|
|
resources:
|
|
requests:
|
|
memory: 3Gi
|
|
cpu: 256m
|
|
limits:
|
|
memory: 3Gi
|
|
|
|
#lifecycle:
|
|
# postStart:
|
|
# - bash
|
|
# - -c
|
|
# - for i in {1..100}; do mc-health && break || sleep 20; done && rcon-cli setpassword 11223345
|
|
|
|
readinessProbe:
|
|
command:
|
|
- mc-health
|
|
periodSeconds: 20
|
|
failureThreshold: 50
|
|
timeoutSeconds: 10
|
|
livenessProbe:
|
|
timeoutSeconds: 10
|
|
|
|
minecraftServer:
|
|
overrideServerProperties: true
|
|
eula: "TRUE"
|
|
onlineMode: false
|
|
difficulty: hard
|
|
hardcore: false
|
|
version: 1.20.1
|
|
maxWorldSize: 90000
|
|
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
|
|
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:
|
|
- name: 0-install-create-plugin
|
|
image: alpine/curl
|
|
command:
|
|
- curl
|
|
- -L
|
|
- "https://www.curseforge.com/api/v1/mods/328085/files/4835191/download"
|
|
- -o
|
|
- /data/mods/create.jar
|
|
volumeMounts:
|
|
- name: plugins
|
|
mountPath: /data/mods
|
|
readOnly: false
|
|
- name: 0-install-vic-plugin
|
|
image: alpine/curl
|
|
command:
|
|
- curl
|
|
- -L
|
|
- https://www.curseforge.com/api/v1/mods/961053/files/5367445/download
|
|
- -o
|
|
- /data/mods/vic.jar
|
|
volumeMounts:
|
|
- name: plugins
|
|
mountPath: /data/mods
|
|
readOnly: false
|
|
- name: 0-install-gecko-plugin
|
|
image: alpine/curl
|
|
command:
|
|
- curl
|
|
- -L
|
|
- https://www.curseforge.com/api/v1/mods/388172/files/5386950/download
|
|
- -o
|
|
- /data/mods/geckolib.jar
|
|
volumeMounts:
|
|
- name: plugins
|
|
mountPath: /data/mods
|
|
readOnly: false
|
|
|
|
extraVolumes:
|
|
- volumeMounts:
|
|
- name: plugins
|
|
mountPath: /data/mods
|
|
readOnly: false
|
|
volumes:
|
|
- name: plugins
|
|
emptyDir:
|
|
sizeLimit: 500Mi
|