Sign inSign up

nox404/valheim

By nox404

•Updated almost 4 years ago

https://gitea.krondor.fr/nox/valheim

Image
0

570

nox404/valheim repository overview

⁠Valheim server

Build Status

⁠Introduction

This repository contains the docker and helm chart to deploy a valheim server on kubernetes.

⁠Docker

The docker image is based on alpine and is always built upon the latest version of valheim server available on steam.

The server is wrapped in a script that traps the termination signals to gracefully exit the server and can optionnaly create backups on exit.

⁠Environment variables

The server can be customized via environment variables.

VariableDefaultDescription
BACKUP_DIRsaves/backupsLocation of the backups.
BACKUP_ENABLEDtrueWether to create a backup on exit or not.
BACKUP_RETENTION_DAYS30Backups older than this value will be removed upon exit. Set to 0 to keep them forever.
SERVER_NAMEValheim ServerValheim server name (shown in the community list).
SERVER_PASSWORD``Password to protect the server.
SERVER_PORT2456First port of the three UDP ports used by the server.
SERVER_PUBLIC0Wether the server should be public or not. 0 -> private, 1 -> public
SERVER_WORLD_NAMEworldName of the world.
⁠Persistence

By default the saves are located in /valheim/saves. You might want to add a volume to that location.

⁠Helm chart

A chart is provided to deploy within kubernetes.

⁠Install
git clone [REPO_CLONE_URL] && cd valheim
helm install --set [OPTION] [RELEASE] chart

Make sure to replace the [...] accordingly.

You may also use a values.yaml file using helm install -f [FILE] ...

⁠Upgrade
git clone [REPO_CLONE_URL] && cd valheim
helm upgrade --reuse-values --set [OPTION] [RELEASE] chart
⁠Uninstall
helm uninstall [RELEASE]
⁠Chart parameters
⁠Common parameters
NameDescriptionValue
image.tagImage version"". Defaults to appVersion.
persistence.enabledEnable persistenceyes
persistence.sizeClaim volume size1Gi
persistence.storageClassStorage class to use. Do not set to use the default class.-
server.backup.directoryLocation of the backups."saves/backups"
server.backup.enabledWether to create a backup on exit or not.yes
server.backup.retention_daysBackups older than this value will be removed upon exit. Set to 0 to keep them forever.30
server.nameValheim server name (shown in the community list)."". Defaults to world name.
server.passwordPassword to protect the server."password"
server.publicWether the server should be public or not.yes
server.worldName of the world."world"
⁠Extended parameters
NameDescriptionValue
affinityPod affinities{}
fullnameOverrideOverride the full name of the resources""
image.pullPolicyImage pull policyIfNotPresent
image.repositoryUse this if the cronjob api has a different version in your clusternox404/valheim
imagePullSecretsSpecify image pull secrets[]
nameOverrideOverride the chart's name""
nodeSelectorConstrain the pod to specific nodes{}
persistence.annotationsAdd annotations to the persitent volume claim{ helm.sh/resource-policy: keep }
persistence.existingClaimUse an existing claim""
podAnnotationsExtra pod annotations{}
podSecurityContextThe pod security context{}
resourcesSpecify container resources{}
securityContextThe container security context{}
service.nodePortFirst port of the three for the service to open on the host when using NodePorts""
service.portFirst port of the three for the service2456
service.typeService typeClusterIP
serviceAccount.annotationsAdd annotations to the service account{}
serviceAccount.createWether to create a service accounttrue
serviceAccount.nameName of the service account to create and/or use"". Defaults to chart-release
terminationGracePeriodSecondsTime in seconds to wait upon terminating the container60
tolerationsPod tolerations[]

Tag summary

Content type

Image

Digest

sha256:3653b89ec…

Size

730.2 MB

Last updated

almost 4 years ago

docker pull nox404/valheim