Skip to content

joedborg/microk8s-valheim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MicroK8s Valheim server

Run a Vanleim server in MicroK8s!

With thanks to cbrgm for the container image.

Prerequisites

This deployment assumes you have /media/k8s/valheim created and writable by MicroK8s. If you prefer somewhere else for the persistent volume, you can modify deployment.yaml.

Deploying

Install MicroK8s and enable required add-ons.

sudo snap install microk8s --classic
sudo microk8s enable dns ingress storage

Clone this repository and cd into it.

git clone https://github.com/joedborg/microk8s-valheim.git

Copy the example secrets file and paste it into the current directory.

cp ./examples/secrets.yaml .

Set your own values in it and apply it along with the deployment.

microk8s kubectl apply -f ./deployment.yaml -f ./secrets.yaml

This will create a NodePort service, mapping to 32456, 32457, 32458. To connect to the server via Steam or Valheim, use the address ${SERVER_IP}:32457. Where ${SERVER_IP} is the IP or DNS address of the host that MicroK8s is running on.

Cleaning up

microk8s kubectl delete -f ./deployment.yaml -f ./secrets.yaml

About

Run a Valheim server on MicroK8s

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published