Skip to main content

Minecraft Kubernetes Helm Chart Guide

Overview​

This document explains all the Helm chart components used to deploy a Minecraft Java Edition server on Kubernetes with host-mounted storage and RCON support.

Chart Structure​

minecraft-server/
├─ chart.yaml
├─ values.yaml
└─ templates/
├─ deployment.yaml
├─ service.yaml
├─ pv.yaml
└─ pvc.yaml

chart.yaml​

This defines metadata about the Helm chart:

apiVersion: v2
name: minecraft-server
version: 0.1.0
description: Minecraft Java Server on Kubernetes

How to Deploy​

1. Prepare Host Directory​

sudo mkdir -p /mnt/DATA/minecraft
sudo chmod -R 777 /mnt/DATA/minecraft

2. Add your Minecraft server JAR​

Place your server.jar into:

/mnt/DATA/minecraft/server.jar

3. Install the Helm Chart​

helm install mc ./minecraft-server -n minecraft --create-namespace

4. Check Deployment​

kubectl get pods -n minecraft
kubectl logs -f deployment/minecraft-server -n minecraft

5. Edit server.properties​

Example:

enable-rcon=true
rcon.port=25575
rcon.password=SuperSecret123
rcon.ip=192.168.2.190
server-ip=192.168.2.10
server-port=25565

Save it to:

/mnt/DATA/minecraft/server.properties

6. Connect to the Server​

Use:

192.168.2.10:25565

7. RCON Access​

192.168.2.190:25575 password: SuperSecret123