game-server
by pvillaverde
Helm Chart with common resource configurations for a game server
About this chart
🏗️ Installation
Using Helm
Helm must be installed to use the charts. Please refer to Helm's documentation to get started.
Once Helm has been set up correctly, add the repo as follows:
helm repo add pvillaverde https://pvillaverde.github.io/helm-charts
If you had already added this repo earlier, run helm repo update to retrieve the latest versions of the packages. You can then run helm search repo pvillaverde to see the charts.
For example, to install the game-server chart:
helm install game-server pvillaverde/game-server
To uninstall the chart:
helm delete game-server
Using FluxCD
Install the Helm repository:
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: pvillaverde
namespace: flux-system
spec:
interval: 1h0m0s
url: https://pvillaverde.github.io/helm-charts
Launch a HelmRelease, for example the game-server chart:
apiVersion: helm.toolkit.fluxcd.io/v2beta2
kind: HelmRelease
metadata:
name: game-server
namespace: flux-system
spec:
releaseName: game-server
targetNamespace: kirfed
interval: 10m
chart:
spec:
chart: game-server
version: 1.6.0
sourceRef:
kind: HelmRepository
name: pvillaverde
namespace: flux-system
values:
[...]
Deploy game-server with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has game-server 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 chartgame-server is pinned at v1.0.6 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