minecraft
Minecraft Java neoforge (modded) and vanilla server with autoupdate and installation support
About this chart
Minecraft vanilla / neoforge java Server
A Helm chart to run a Minecraft java vanilla and neoforge server on Kubernetes using Eclipse Temurin (OpenJDK 21) and a StatefulSet with persistent storage.
If you set neoforge.enabled: true with a version like neoforge.version: "21.1.219" a init container will install neoforge for you. If you change the version, it gets automaticly installed.
If the volume doesnt include any server.jar a init container will automaticly download it and will bootrap the minecraft server.
You can upgrade minecraft by set a new minecraft version value.
If you want to install any mods, you can easily use kubectl cp, for example kubectl cp ./mods.tar.gz minecraft/minecraft-0:/data/mods.tar.gz afterwards you can untar the mods tar and restart the server to enable the mods, thats it.
Features
| Feature | Details |
|---|---|
| Base image | docker.io/eclipse-temurin (rootless, minimal) |
| Workload | StatefulSet – stable network identity & ordered pods |
| Persistence | PersistentVolumeClaim via volumeClaimTemplates |
| JAR download | Init container (curlimages/curl) downloads the server JAR if missing or upgrades |
| Config | Server properties managed via ConfigMap |
| Security | runAsNonRoot, dropped capabilities, seccompProfile, readOnlyRootFilesystem on init |
| Networking | Headless + external Service, optional NetworkPolicy |
| RCON | Optional remote-console with Secret-backed password |
Installation
HTTPS
helm repo add syntax3rror404 https://syntax3rror404.github.io/helm-charts/charts
helm repo update
helm install my-minecraft syntax3rror404/minecraft -n minecraft --create-namespace --set minecraft.eulaAccepted=true -f myvalues.yaml
OCI
helm install my-minecraft oci://ghcr.io/syntax3rror404/helm-charts/minecraft --version <version> -n minecraft --create-namespace --set minecraft.eulaAccepted=true -f myvalues.yaml
Quick Start
# Watch the pod start
kubectl get pods -n minecraft -w
# Get the external IP (LoadBalancer)
kubectl get svc my-minecraft-minecraft -n minecraft
Configuration
See values.yaml for all options. Key settings:
Neoforge Example:
minecraft:
jarUrl: "https://..." # override to use a specific jar
eulaAccepted: true # MUST be true
jvmOpts: "-Xms1G -Xmx2G ..."
persistence:
enabled: true
size: 10Gi
resources:
limits:
cpu: "2000m"
memory: "2.5Gi"
neoforge:
enabled: true
rcon:
enabled: false
password: "changeme" # use a Secret in production!
Vanilla Example:
minecraft:
jarUrl: "https://..." # override to use a specific jar
eulaAccepted: true # MUST be true
jvmOpts: "-Xms1G -Xmx2G ..."
persistence:
enabled: true
size: 10Gi
resources:
limits:
cpu: "2000m"
memory: "2.5Gi"
rcon:
enabled: false
password: "changeme" # use a Secret in production!
Upgrade / Changing Minecraft Version
Update minecraft.jarUrl or if modded neoforge.version in values.yaml and perform a helm upgrade. A init container download and install the updates for you.
Uninstall
helm uninstall my-minecraft -n minecraft
# PVC is NOT deleted automatically – delete manually if desired:
kubectl delete pvc data-my-minecraft-0 -n minecraft
Deploy minecraft with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has minecraft on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartminecraft is pinned at v1.2.25 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply