enshrouded-server

by kriegalex

Helm chartv1.1.1App proton-v2.1.6Verified publisher

A Helm chart for Enshrouded Dedicated Game Server

About this chart

Enshrouded Server Helm Chart

A Helm chart for Enshrouded Dedicated Game Server

Important Notes

This Helm chart is configured to run the Enshrouded server as user steam with UID/GID 10000:10000, as required by the container image. The persistent volume for save data is mounted at /home/steam/enshrouded/savegame and must be accessible by this user.

It is also recommended to set some minimal resources for your server:

resources:
  # -- We usually recommend not to specify default resources and to leave this as a conscious
  # choice for the user. This also increases chances charts run on environments with little
  # resources, such as Minikube.
  limits:
    memory: 12Gi
  requests:
    cpu: 4000m
    memory: 4Gi

Installing the Chart

# Add the repository
helm repo add k8s-charts https://kriegalex.github.io/k8s-charts/

# Install the chart
helm install my-enshrouded-server k8s-charts/enshrouded-server

Persistence

This chart creates a PersistentVolumeClaim to store your Enshrouded server data. The volume will not be deleted when you uninstall the chart. If you want to delete the PVC, you need to do it manually.

kubectl delete pvc -l app.kubernetes.io/instance=my-enshrouded-server

Updating the Server

The Enshrouded server will automatically update when new game versions are released if you use the default image tag.

To manually update the server:

helm upgrade my-enshrouded-server k8s-charts/enshrouded-server

Accessing the Server

The chart creates a Service of type LoadBalancer by default. You can find the external IP with:

kubectl get svc my-enshrouded-server

Managing Savegame Data

This section explains how to safely copy savegames between your local computer and the Kubernetes cluster.

Copying Savegames to the Kubernetes PVC

To upload your existing Enshrouded savegames to the server, follow these steps:

1. Scale Down the Enshrouded Server

First, scale down the Enshrouded server to prevent data corruption while copying files:

# Replace 'enshrouded-server' with your Helm release name
kubectl scale deployment enshrouded-server --replicas=0

2. Scale Down the Enshrouded Server

Create a file named enshrouded-server-savegame.yaml with the following content:

apiVersion: v1
kind: Pod
metadata:
  name: enshrouded-server-savegame
  labels:
    app: enshrouded-server-savegame
spec:
  securityContext:
    runAsUser: 10000
    fsGroup: 10000
  containers:
  - name: copy-container
    image: ubuntu:24.04
    command: ['sleep', 'infinity']
    volumeMounts:
    - name: savegame-data
      mountPath: /home/steam/enshrouded/savegame
  volumes:
  - name: savegame-data
    persistentVolumeClaim:
      # Replace with your PVC name
      claimName: enshrouded-server

Apply this manifest to create the pod:

kubectl apply -f enshrouded-server-savegame.yaml

3. Copy Files from Local to PVC

Wait for the pod to be ready:

kubectl wait --for=condition=Ready pod/enshrouded-server-savegame

Copy your local savegame files to the PVC:

# For Windows (PowerShell)
# Replace C:\path\to\local\savegame with your local savegame directory
kubectl cp 'C:\path\to\local\savegame\' enshrouded-server-savegame:/home/steam/enshrouded/savegame/

# For macOS/Linux
# Replace /path/to/local/savegame with your local savegame directory
kubectl cp /path/to/local/savegame/ enshrouded-server-savegame:/home/steam/enshrouded/savegame/

4. Verify File Permissions

Ensure files have correct permissions:

kubectl exec enshrouded-server-savegame -- ls -la /home/steam/enshrouded/savegame/

5. Clean Up and Restart the Server

Delete the temporary pod:

kubectl delete pod enshrouded-server-savegame

Scale the Enshrouded server back up:

kubectl scale deployment enshrouded-server --replicas=1

Retrieving Savegames from the Server

To download your savegames from the server to your local machine:

# Scale down the server first (optional but recommended)
kubectl scale deployment enshrouded-server --replicas=0

# Create the temporary pod as described above
kubectl apply -f copy-pod.yaml
kubectl wait --for=condition=Ready pod/enshrouded-server-savegame

# Copy from PVC to local (Windows PowerShell)
kubectl cp enshrouded-server-savegame:/home/steam/enshrouded/savegame/ 'C:\path\to\destination\'

# Copy from PVC to local (macOS/Linux)
kubectl cp enshrouded-server-savegame:/home/steam/enshrouded/savegame/ /path/to/destination/

# Clean up
kubectl delete pod enshrouded-server-savegame
kubectl scale deployment enshrouded-server --replicas=1

Finding Your Local Savegame Files

Enshrouded savegame files are typically located at:

  • Windows: C:\Program Files (x86)\Steam\userdata\STEAM_ID\1203620\remote\
  • Linux (Steam/Proton): ~/.local/share/Steam/steamapps/compatdata/1203620/pfx/drive_c/users/steamuser/AppData/Local/Enshrouded/Saves

Notes on Savegame Management

  • Always scale down the server before copying files to prevent data corruption
  • Savegame files use the .sav extension
  • The container runs as UID/GID 10000:10000, which is why the copy pod uses the same values
  • Making regular backups of your savegames is recommended

Values

Values

KeyTypeDefaultDescription
affinityobject{}Affinity for pod assignment @type -- object
configMap.dataobject{}Additional environment variables @type -- object
configMap.enabledbooltrueEnable additional configuration via ConfigMap
enshrouded.existingSecretstring""Name of an existing Secret providing the server password instead of serverPassword. The Secret must contain a SERVER_PASSWORD key. When set, the chart does not render its own Secret and serverPassword is ignored — keeps the password out of Helm values entirely.
enshrouded.externalConfigint0If you would rather manually supply a config file, set this to true (1)
enshrouded.gamePortint15636Game server port (UDP)
enshrouded.maxPlayersint16Maximum number of players
enshrouded.queryPortint15637Query server port (UDP)
enshrouded.serverIPstring0.0.0.0Server IP address to bind to
enshrouded.serverNamestring"My Enshrouded Server"Server name displayed in the server browser
enshrouded.serverPasswordstring"changeme"Server password (leave blank for no password)
fullnameOverridestring""Override the full name of the chart
image.pullPolicystring"Always"Image pull policy
image.repositorystring"sknnr/enshrouded-dedicated-server"Repository for the Enshrouded Server image
image.tagstring""Specify a tag, defaults to Chart.appVersion
imagePullSecretslist[]ImagePullSecrets for private docker registry
livenessProbe.enabledboolfalseEnable livenessProbe
livenessProbe.failureThresholdint6Number of failures before giving up @description -- Allow up to 2 minutes for initial startup
livenessProbe.initialDelaySecondsint60Initial delay before probing
livenessProbe.periodSecondsint20Period between probes
livenessProbe.timeoutSecondsint5Timeout for each probe
nameOverridestring""Override the name of the chart
nodeSelectorobject{}Node selector for pod assignment @type -- object
persistence.accessModeslist["ReadWriteOnce"]Access mode for the volume
persistence.annotationsobject{}Annotations for PVC
persistence.enabledbooltrueEnable persistence using Persistent Volume Claims
persistence.existingClaimstring""Existing PVC to use (required if persistence.enabled is true)
persistence.sizestring"10Gi"Size of persistent volume claim
persistence.storageClassNamestring""StorageClass for PVC @description -- If defined, storageClassName: If set to "-", storageClassName: "", which disables dynamic provisioning If undefined or null, no storageClassName spec is set, choosing the default provisioner
podAnnotationsobject{}Annotations to add to pods
podDisruptionBudget.enabledboolfalseEnable PodDisruptionBudget
podDisruptionBudget.minAvailableint1Minimum available pods
podSecurityContext.fsGroupint10000Group ID to run the container
podSecurityContext.runAsUserint10000User ID to run the container
readinessProbe.enabledbooltrueEnable readinessProbe
readinessProbe.failureThresholdint20Number of failures before giving up @description -- Allow up to 5 minutes for readiness
readinessProbe.initialDelaySecondsint60Initial delay before probing
readinessProbe.periodSecondsint15Period between probes
readinessProbe.timeoutSecondsint5Timeout for each probe
resourcesobject{}Resource requests and limits @description -- We usually recommend not to specify default resources and to leave this as a conscious choice for the user. This also increases chances charts run on environments with little resources, such as Minikube.
securityContext.allowPrivilegeEscalationboolfalsePrevent privilege escalation
securityContext.capabilities.droplist["ALL"]Linux capabilities to remove
service.annotationsobject{}Annotations for the service
service.gamePortobject{"port":15636,"protocol":"UDP","targetPort":15636}Game port configuration
service.gamePort.portint15636Port exposed by the service
service.gamePort.protocolstring"UDP"Protocol used by the port
service.gamePort.targetPortint15636Port targetted on the pods
service.loadBalancerIPstring""LoadBalancer IP (optional, cloud specific)
service.loadBalancerSourceRangeslist[]Specify the allowed IPs for LoadBalancer
service.queryPortobject{"port":15637,"protocol":"UDP","targetPort":15637}Query port configuration
service.queryPort.portint15637Port exposed by the service
service.queryPort.protocolstring"UDP"Protocol used by the port
service.queryPort.targetPortint15637Port targetted on the pods
service.typestring"LoadBalancer"Service type @valid -- "ClusterIP" "NodePort" "LoadBalancer" "ExternalName"
serviceAccount.annotationsobject{}Annotations to add to the service account
serviceAccount.createbooltrueSpecifies whether a service account should be created
serviceAccount.namestring""The name of the service account to use. If not set and create is true, a name is generated using the fullname template
startupProbe.enabledbooltrueEnable startupProbe
startupProbe.failureThresholdint30Number of failures before giving up @description -- Allow up to 5 minutes for initial startup
startupProbe.initialDelaySecondsint30Initial delay before probing
startupProbe.periodSecondsint10Period between probes
startupProbe.timeoutSecondsint5Timeout for each probe
tolerationslist[]Tolerations for pod assignment @type -- array
updateStrategy.rollingUpdateobject{"maxSurge":0,"maxUnavailable":1}Rolling update configuration parameters
updateStrategy.rollingUpdate.maxSurgeint0Maximum number of new pods that can be created during the update
updateStrategy.rollingUpdate.maxUnavailableint1Maximum number of pods that can be unavailable during the update
updateStrategy.typestring"RollingUpdate"Update strategy @valid -- "RollingUpdate" "Recreate"

Autogenerated from chart metadata using helm-docs v1.14.2

Deploy enshrouded-server with OpenTenant

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