nix/clusters/lab/minecraft/minecraft-helm.yaml

163 lines
3.8 KiB
YAML

---
apiVersion: v1
kind: Namespace
metadata:
name: minecraft
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: mc-world
namespace: minecraft
spec:
accessModes:
- ReadWriteOnce
storageClassName: local-path
resources:
requests:
storage: 5Gi
---
apiVersion: helm.cattle.io/v1
kind: HelmChart
metadata:
name: minecraft
namespace: kube-system
spec:
targetNamespace: minecraft
repo: https://itzg.github.io/minecraft-server-charts/
chart: minecraft
valuesContent: |-
image:
repository: itzg/minecraft-server
tag: java21
pullPolicy: Always
replicaCount: 1
resources:
requests:
memory: 3000Mi
cpu: 1000m
strategyType: Recreate
nodeSelector: {}
tolerations: []
affinity: {}
securityContext:
runAsUser: 1000
fsGroup: 1000
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
extraVolumes: []
minecraftServer:
eula: "TRUE"
wersion: "latest"
type: "FABRIC"
difficulty: normal
whitelist: cjriddz,k359,yessorre,ZaltyPretzel,Yessorre,aemdryr
ops: cjriddz,k359,yessorre,ZaltyPretzel,Yessorre,aemdryr
maxWorldSize: 15000
viewDistance: 16
motd: "good morning :)"
pvp: false
levelType: DEFAULT
worldSaveName: world-gims-7
forceReDownload: false
memory: 3000M
serviceAnnotations: {}
serviceType: LoadBalancer
servicePort: 25565
clusterIP:
loadBalancerIP:
externalIPs:
query:
enabled: false
port: 25565
rcon:
enabled: true
withGeneratedPassword: true
extraEnv:
# https://fabricmc.net/use/server/
VERSION_FROM_MODRINTH_PROJECTS: true
RCON_CMDS_STARTUP: |-
gamerule playersSleepingPercentage 19
gamerule doInsomnia false
gamerule mobGriefing false
# deprecated mods
# incendium:alpha
# nullscape
# true-ending
# upgraded-mobs
# spellbound-weapons
# neoenchant
# lukis-grand-capitals
# lukis-crazy-chambers
# lukis-ancient-cities
# towns-and-towers
# dungeons-and-taverns-jungle-temple-overhaul
# dungeons-and-taverns-ocean-monument-overhaul
# dungeons-and-taverns-woodland-mansion-replacement
# dungeons-and-taverns-nether-fortress-overhaul
# dungeons-and-taverns-stronghold-overhaul
# structory
# structory-towers
# yggdrasil-structure
# hostile-mobs-improve-over-time
# beyondenchant
# expanded-axe-enchanting
# expanded-weapon-enchanting
# expanded-bow-enchanting
# expanded-armor-enchanting
# expanded-trident-enchanting
# infinite-trading
# healing-campfire
# fabric-language-kotlin
# cloth-config
# owo-lib
# cristel-lib
# ct-overhaul-village
# tectonic
# terralith
# portfolio
# tree-harvester
# chunky
# ferrite-core
# scalablelux
# appleskin
# inventory-sorting
# datapack:health-indicator
MODRINTH_PROJECTS: |-
fabric-api
collective
cloth-config
lithium
c2me-fabric:alpha
your-items-are-safe
datapack:geophilic
dungeons-and-taverns
more-mobs
envFrom: []
persistence:
annotations: {}
storageClass: "longhorn"
dataDir:
enabled: true
existingClaim: mc-world