zomboid-server

by janip81

Helm chartv0.1.21App 42.20.2MITVerified publisher

A Helm chart for deploying a Project Zomboid dedicated server on Kubernetes

About this chart

zomboid-server

A Helm chart for deploying a Project Zomboid dedicated server on Kubernetes

Homepage: https://projectzomboid.com

Maintainers

NameEmailUrl
janip81[email protected]

Source Code

Overview

This Helm chart deploys a Project Zomboid dedicated server on Kubernetes as a single-replica StatefulSet.

Server image: danixu86/project-zomboid-dedicated-server — full RCON, Workshop, Build 41/42 multi-branch support.

Web panel: ghcr.io/fpsacha/zomboid-panel (Zomboid Control Panel v1.0.66) — a purpose-built PZ admin dashboard with RCON console, live world map, mod manager, player management, backups, and scheduler. Runs as a sidecar with no Docker socket.

Prerequisites

  • Kubernetes 1.29+
  • Helm 3.16+
  • Cilium with Gateway API support (for panel HTTPRoute)
  • Cilium LoadBalancer IP pool (for game traffic)
  • vSphere CSI or another ReadWriteOnce-capable StorageClass
  • ArgoCD (optional, for GitOps deployment)

TL;DR

helm repo add janip81 https://janip81.github.io/helm-charts/
helm install zomboid janip81/zomboid-server -n games --create-namespace \
  --set zomboid.adminPassword=changeme \
  --set zomboid.rconPassword=changeme-rcon

Installation

Required Secrets

Never put passwords in Git. Create the Kubernetes Secret before deploying:

kubectl create secret generic zomboid-secrets -n games \
  --from-literal=admin-password='<strong-admin-password>' \
  --from-literal=rcon-password='<strong-rcon-password>' \
  --from-literal=server-password=''

Then reference it in values:

zomboid:
  existingSecret: "zomboid-secrets"
  secretKeys:
    adminPassword: "admin-password"
    rconPassword: "rcon-password"
    serverPassword: "server-password"

The RCON password is automatically shared with the panel sidecar — no separate panel secret is needed. The panel creates its own admin account on first run via the setup wizard.

Install with values file

helm upgrade --install zomboid janip81/zomboid-server \
  -n games --create-namespace \
  -f examples/values-prod.yaml

Server Container Security Context

The danixu86 entrypoint requires root at startup. It performs operations roughly equivalent to:

chown -R 1000:1000 /home/steam/pz-dedicated/steamapps/workshop /home/steam/Zomboid
chmod 755 /home/steam/Zomboid
su - steam -c "... ./start-server.sh ..."

These steps are incompatible with a restricted container security context:

RestrictionEffect
runAsUser: 1000Entrypoint runs as steam; cannot chown files owned by root (PVC first-mount)
runAsNonRoot: truePrevents entrypoint from starting as root
capabilities.drop: [ALL]Removes CAP_CHOWN, breaking the chown step

The server container security context is therefore left empty ({}) by default. The entrypoint drops to the steam user on its own after initialization.

Do not add runAsUser, runAsNonRoot, or capabilities.drop to the server security context unless you have tested the exact danixu86 image and confirmed the entrypoint completes successfully with those restrictions.

The panel sidecar does not run an entrypoint that requires root and uses the more restrictive defaults:

securityContext:
  panel:
    runAsUser: 1000
    runAsGroup: 1000
    runAsNonRoot: true
    allowPrivilegeEscalation: false
    capabilities:
      drop: [ALL]

Build 41 vs Build 42

The server image bakes the branch at image-build time. Select the build by choosing the image tag — there is no runtime environment variable for this.

BuildTagStatus
Build 41 (stable)41.78.19-releaseRecommended for production
Build 42 (early access)42.19.0-unstableMay have breaking changes
# Build 41 stable (default)
image:
  tag: "41.78.19-release"

# Build 42 early access
image:
  tag: "42.19.0-unstable"

Warning: Never switch branches while a world is running. Take a VolumeSnapshot before any branch change. Local and dedicated server branches must match exactly for clients to connect.

Admin Password Bootstrap

The danixu86 image passes ADMINPASSWORD as a command-line argument. The server logs the full argument list on every startup, exposing the password in plain text.

The chart uses a bootstrap pattern to limit this exposure:

zomboid:
  adminPasswordBootstrap:
    enabled: true  # required for first run; set false afterwards

Workflow:

  1. Deploy with adminPasswordBootstrap.enabled: true. The admin account is created.
  2. Log into the server or panel and verify the admin account works.
  3. Set adminPasswordBootstrap.enabled: false in values.
  4. Upgrade the chart and delete the pod to apply:
    kubectl delete pod -n games zomboid-0
    
  5. From this point forward, ADMINPASSWORD is not injected into the process and will not appear in logs.

The RCON password is always injected from the Secret regardless of this setting.

Workshop Mod Configuration

zomboid:
  selfManagedMods: false
  mods:
    workshopIds:
      - "2392709985"
      - "2458631365"
    modIds:
      - "MyMod"
      - "AnotherMod"

Critical: When selfManagedMods: false and both lists are empty, the entrypoint sets SELF_MANAGED_MODS=true automatically to protect existing INI mod config. If you explicitly set mods in values, WORKSHOP_IDS and MOD_IDS are passed to the entrypoint, which writes them into the server INI. Switching between these modes on a live server will override the INI on the next restart.

The environment variable the chart sets is SELF_MANAGED_MODS (with underscore). This is the correct spelling accepted by the danixu86 entrypoint.

Handing mod management to the panel

After your mod list is stable:

zomboid:
  selfManagedMods: true

This prevents the entrypoint from overwriting the INI mod entries, so panel-managed changes survive restarts.

Web Panel

The Zomboid Control Panel (ghcr.io/fpsacha/zomboid-panel) runs as a sidecar at port 3001. It connects to the game server via RCON at 127.0.0.1:27015 (internal to the pod). RCON is never exposed as a Kubernetes Service.

RCON_SKIP_SERVER_CHECK

The panel expects to detect the PZ server process before accepting RCON connections. In a Kubernetes sidecar deployment, the panel cannot see the server container's process list — they run in separate container namespaces despite sharing the pod network. The panel would therefore always report the server as offline and refuse RCON commands.

RCON_SKIP_SERVER_CHECK=true is set by default to bypass this check. RCON connections and all RCON commands function normally regardless of the process-detection status.

panel:
  rcon:
    host: "127.0.0.1"   # always 127.0.0.1 in the sidecar pod
    port: 27015          # must match zomboid.rcon.port
    skipServerCheck: true  # required for sidecar deployment

Panel mounts

The panel reads PZ paths from two shared volume mounts:

VolumeServer pathPanel pathAccess
data PVC/home/steam/Zomboid/zomboidWritable (PanelBridge IPC)
serverFiles PVC/home/steam/pz-dedicated/pz-serverRead-only by default

Accessing the panel

With Gateway API:

gateway:
  enabled: true
  hostname: "zomboid.example.com"
  parentRefs:
    - name: main-gateway
      namespace: gateway
panel:
  corsOrigins: "https://zomboid.example.com"
  https: true

Via port-forward (no gateway):

kubectl port-forward -n games sts/zomboid-0 3001:3001
# Open http://localhost:3001

What the panel can and cannot do

The panel's Start, Stop, and Restart server buttons cannot control the Kubernetes pod. Do not confuse the panel's Stop button with issuing the RCON quit command from the panel's RCON console — they are different things.

The panel can do the following via its RCON console: save, quit, players, kick, ban, unban, broadcast, adduser, setaccesslevel, weather and event commands, and all other PZ RCON commands.

The panel cannot:

  • Start or stop the PZ process (Kubernetes owns the container lifecycle)
  • Restart the server on crash (Kubernetes StatefulSet controller handles that)
  • Auto-update the PZ server binary (managed by image tag + pod replacement)
  • Access the Docker socket (not mounted; not needed)
  • Accurately report server process status (status indicator will show offline — this is expected)

Panel backup storage

The panel stores backups created through its UI inside /app/data — the same directory as its database, JWT secret, and configuration.

Risk with the default 2Gi panelData PVC: frequent large world backups via the panel will fill this volume. Once full, the panel process may fail to write its database.

Recommended approaches:

  1. Chart CronJob (enabled via backup.enabled: true) — writes to the backups PVC (30Gi), not panelData
  2. CSI VolumeSnapshot after a confirmed RCON save — storage-level snapshot
  3. Send save via RCON console, then trigger CronJob manually:
    # 1. Issue `save` in the panel RCON console and wait for the save to complete in logs
    # 2. Trigger the backup job immediately:
    kubectl create job \
      --from=cronjob/zomboid-backup \
      zomboid-backup-manual-$(date +%s) \
      -n games
    
  4. Increase panelData size before enabling frequent panel backups:
    persistence:
      panelData:
        size: 10Gi
    

The backups PVC (mounted at /backups in the server container) is used only by the chart CronJob — the panel does not write into it.

PanelBridge (optional, disabled by default)

PanelBridge is a server-side Lua mod that enables features beyond RCON: teleport, heal, weather control at granular level, character export/import, inventory editing.

Requirements:

  1. Make /pz-server writable in the panel (needed to install the Lua file):

    panel:
      panelBridge:
        enabled: true
      serverFilesReadOnly: false
    
  2. DoLuaChecksum=false in the server INI. Set this via the panel's Settings → Server Config editor. This cannot be set via a Helm value — it must be changed in the INI directly.

  3. Enable PanelBridge in Settings → PanelBridge in the panel UI and restart the PZ server.

Verify the actual path in your running container before enabling PanelBridge:

kubectl exec -n games <pod-name> -c server -- \
  find /home/steam/pz-dedicated -path "*/Install/media/lua/server" -type d

PanelBridge communicates via JSON files in /zomboid/Lua/panelbridge/<serverName>/ — on the data PVC, already writable for the panel at /zomboid.

Planned Maintenance: Safe Shutdown Procedure

Important: The current upstream image (danixu86/project-zomboid-dedicated-server) does not install a verified Kubernetes-aware SIGTERM handler. A plain pod deletion or kubectl scale --replicas=0 may terminate the Java process without flushing a final world save. Do not rely on Kubernetes pod termination alone to produce an application-consistent save.

Use this procedure before any planned maintenance: pod deletion, chart upgrade, scale-down, or VolumeSnapshot.

Steps:

  1. Open the Zomboid panel and navigate to the RCON console.

  2. Issue the save command:

    save
    

    Wait until the server logs confirm the save completed. Watch the logs:

    kubectl logs -n games <pod-name> -c server --tail=100 -f
    
  3. Issue the quit command:

    quit
    

    The game process will exit. The panel RCON console will lose connectivity — this is expected.

  4. Confirm from the server logs that the game process has exited before proceeding.

  5. Now delete the pod or scale to zero:

    # For pod replacement (e.g., applying a chart upgrade):
    kubectl delete pod -n games zomboid-0
    
    # For full stop:
    kubectl scale statefulset -n games zomboid --replicas=0
    

Note: After quit is issued through RCON, Kubernetes will detect that the container exited and will recreate it (StatefulSet controller). If you do not want an immediate restart, scale to zero before issuing quit, or delete the pod immediately after the process exits.

Graceful Shutdown Configuration

shutdown:
  graceful:
    enabled: false
    method: "none"

shutdown.graceful.enabled: false is the only correct default. There is currently no verified RCON client inside the danixu86 image container, so no preStop hook is rendered.

A future release may support method: "rcon" once a client binary is confirmed present in the image and the full save-then-quit flow is tested end-to-end. Until then, follow the manual maintenance procedure above.

The chart does not provide a preStop hook. Kubernetes sends SIGTERM to all containers after the pod is marked for deletion. The pod will be SIGKILL'd after terminationGracePeriodSeconds (90 s) regardless of whether the game has saved. This is why the manual save-before-delete procedure is necessary.

Upgrades

Chart upgrade procedure

The StatefulSet uses updateStrategy: OnDelete. This means:

  • Template change

Deploy zomboid-server with OpenTenant

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