dayz-dedicated-server

by jespernohr

Helm chartv0.1.2App 0.1.2Verified publisher

A Helm chart for deploying a DayZ dedicated server on Kubernetes

About this chart

DayZ Dedicated Server Helm Chart

A Helm chart for deploying a DayZ dedicated server on Kubernetes, using the custom Docker image ghcr.io/jespernohr/dayz-dedicated-server.

Prerequisites

  • Kubernetes cluster (v1.18+)
  • Helm 3.0+
  • A Kubernetes-compatible load balancer (for external access)

Installation

To install the chart with the release name my-dayz-server, use the following command:

helm install my-dayz-server ./dayz-dedicated-server

Configuration

The following tables list the configurable parameters of the DayZ server chart and their default values.

General Settings

ParameterDescriptionDefault
replicaCountNumber of replicas for the server1
image.repositoryImage repositoryghcr.io/jespernohr/dayz-dedicated-server
image.tagImage taglatest
image.pullPolicyImage pull policyIfNotPresent

Service Settings

ParameterDescriptionDefault
service.typeKubernetes Service typeLoadBalancer
service.ports.gameGame port for player connections (UDP)2302
service.ports.steamSteam port for server visibility (UDP)8766
service.ports.rconRCON port for remote admin access (TCP)2310

Resource Settings

ParameterDescriptionDefault
resources.requestsMinimum resources required{}
resources.limitsMaximum resources allowed{}

Environment Variables

The server container accepts the following environment variables to configure Steam account details and game settings.

VariableDescriptionDefault
STEAMACCOUNTSteam account username (for login)anonymous
CPUCOUNTNumber of CPUs the server can use2
PORTPort for the game server (UDP)2302

Usage

Updating the Chart

To apply any configuration changes, use the following command:

helm upgrade my-dayz-server ./dayz-dedicated-server -f values.yaml

Uninstalling the Chart

To uninstall/delete the my-dayz-server deployment:

helm uninstall my-dayz-server

Accessing the Server

The game server and Steam connection ports are exposed using a LoadBalancer service. After deploying, check your load balancer's external IP and connect to it with the appropriate ports (2302 for the game, 8766 for Steam).


This chart provides an easy way to set up and deploy a DayZ server on Kubernetes. You can customize the values in values.yaml as needed to fit your server's specifications.

Deploy dayz-dedicated-server with OpenTenant

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

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartdayz-dedicated-server is pinned at v0.1.2 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