minetest

by Helm

Helm chartv0.0.5App 5.0.0

Minetest server

About this chart

Minetest helm chart

Creates a minetest server in port 30000/udp by default in a kubernetes cluster.

TL;DR;

$ helm repo add fermosit https://harbor.fermosit.es/chartrepo/library
$ helm upgrade --install fermosit/minetest

Introduction

This chart bootstraps a Minetest deployment on a Kubernetes cluster using the Helm package manager.

It also allows to install minetest games on-the-fly.

Source code: https://github.com/elmanytas/minetest-kubernetes

Report bugs here: https://github.com/elmanytas/minetest-kubernetes/issues

Prerequisites

  • Kubernetes 1.19+
  • Helm 3
  • PV provisioner support in the underlying infrastructure

Installing the chart

To install the chart with the release name my-release:

$ helm repo add fermosit https://harbor.fermosit.es/chartrepo/library
$ helm install my-release fermosit/minetest

The command deploys Minetest on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

Installing games

Configure the var setGame=true and gameUrl to the game. Look for games in https://content.minetest.net/packages/?type=game, copy url and install it.

Example:

helm install my-release \
  --set setGame=true \
  --set gameUrl=https://content.minetest.net/packages/Wuzzy/mineclone2 \
  fermosit/minetest

Landing page

Optional: creates a web page with instructions to connect this minetest server.

In GKE:

  • service.type: LoadBalancer
  • externalTrafficPolicy: Cluster on-prem:
  • service.type: ClusterIP

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm delete my-release

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

Parameters

The following table lists the configurable parameters of the Zabbix Server chart and their default values.

ParameterDescriptionDefault
image.minetest.registryMinetest image registrydocker.io
image.minetest.repositoryMinetest image namelinuxserver/minetest
image.minetest.tagMinetest image taglatest
image.minetest.pullPolicyMinetest image pull policyAlways
image.minetest.pullSecretsMinetest docker-registry secret names as an array[] (does not add image pull secrets to deployed pods)
image.httpd.registryhttpd image registrydocker.io
image.httpd.repositoryhttpd image namehttpd
image.httpd.taghttpd image taglatest
image.httpd.pullPolicyhttpd Image pull policyIfNotPresent
image.httpd.pullSecretshttpd docker-registry secret names as an array[] (does not add image pull secrets to deployed pods)
nameOverride.Strings to partially override fullname templates with a string (will prepend the release name)nil
fullnameOverride.Strings to fully override fullname templates with a stringnil
minetestPortPort to be exposed to the internet (30000 .. 32767)30000
minetestTimezoneTimezoneEurope/Madrid
cliArgsMinetest cli arguments (example: --gameid minetest)nil
backupBackup all data before minetest startfalse
setGameConfigure game downloading/updatingfalse
gameUrlGame url to be downloadedhttps://content.minetest.net/packages/Wuzzy/mineclone2
setOptionsConfigure minetest optionsfalse
enableDamageEnable players getting damage and dyingtrue
creativeModeEnable creative mode for new created maps.false
freeModePlayer is able to fly without being affected by gravity. "fly" privilege on the server required.false
fastModeFast movement (via the "special" key). This requires the "fast" privilege on the server.true
autojumpAutomatically jump up single-node obstacles.true
tineSpeedControls length of day/night cycle.72
service.typeService typeClusterIP
service.portPublic UDP Port30000
service.externalTrafficPolicyEnable client source IP preservationCluster
resourcesConfigure resource requests and limitsnil
nodeSelectorNode labels for pod assignment{}
tolerationsList of node taints to tolerate[]
affinityMap of node/pod affinities{}
podAnnotationsPod annotations{}
ingress.enabledSet to true to enable ingress record generation to little instructions pagefalse
ingress.classNameIngress class name""
ingress.hostnameDefault host for the ingress resourcelocalhost
ingress.annotationsIngress annotations[]
persistence.accessModePVC Access ModeReadWriteOnce
persistence.sizePVC Storage Request100Mi

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

helm repo add fermosit https://harbor.fermosit.es/chartrepo/library
helm upgrade --install minetest fermosit/minetest \
  --namespace minetest \
  --set persistence.size=2Gi

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

$ helm upgrade --install --name my-release -f values.yaml fermosit/minetest

Tip: You can use the default values.yaml

Deploy minetest with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has minetest 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 chartminetest is pinned at v0.0.5 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