mc-router

by itzg

Helm chartv1.5.0App 1.0.0Verified publisher

Routes Minecraft client connections to backend servers based upon the requested server address.

About this chart

Minecraft Router

Routes Minecraft client connections to backend servers based upon the requested server address.

Introduction

This chart creates a single mc-router Pod, associated Service and permissions.

Prerequisites

  • 16 MB of RAM
  • Kubernetes 1.4+
  • PV provisioner support in the underlying infrastructure

Installing the Chart

To install the chart with the release name mc-router, run:

helm install mc-router itzg/mc-router

This command deploys a mc-router instance with sensible defaults.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the mc-router deployment:

helm delete mc-router

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

Refer to values.yaml for the full run-down on defaults. These are a mixture of Kubernetes and Minecraft Router -related directives that map to environment variables in the itzg/mc-router Docker image.

Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,

helm install mc-router \
  --set minecraftRouter.connectionRateLimit=2,minecraftRouter.debug.enabled=true \
  itzg/mc-router

Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,

helm install mc-router -f values.yaml itzg/mc-router

Tip: You can use the default values.yaml

Port Range

Depending on the chosen API and Minecraft ports, you might need to update your cluster's allowed node port range by adding --service-node-port-range=25000-32767 to /etc/kubernetes/manifests/kube-apiserver.yaml. For K3s clusters, refer to K3s' documentation to know how to change the allowed port range.

Deploy mc-router with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has mc-router 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartmc-router is pinned at v1.5.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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