https://github.com/joedborg/microk8s-valheim
Run a Valheim server on MicroK8s
https://github.com/joedborg/microk8s-valheim
Last synced: 4 months ago
JSON representation
Run a Valheim server on MicroK8s
- Host: GitHub
- URL: https://github.com/joedborg/microk8s-valheim
- Owner: joedborg
- Created: 2021-02-28T02:01:41.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-28T02:39:09.000Z (over 5 years ago)
- Last Synced: 2025-02-23T07:46:22.649Z (over 1 year ago)
- Size: 5.86 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MicroK8s Valheim server
Run a Vanleim server in MicroK8s!
With thanks to [cbrgm](https://github.com/cbrgm/valheim-docker) 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](https://microk8s.io) 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
```