Run a Vanleim server in MicroK8s!
With thanks to cbrgm for the container image.
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
.
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.
microk8s kubectl delete -f ./deployment.yaml -f ./secrets.yaml