https://github.com/guilledipa/valheim
Valheim on GKE
https://github.com/guilledipa/valheim
gke kubernetes statefulset valheim valheim-dedicated-server
Last synced: 28 days ago
JSON representation
Valheim on GKE
- Host: GitHub
- URL: https://github.com/guilledipa/valheim
- Owner: guilledipa
- License: gpl-3.0
- Created: 2021-03-10T09:34:58.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-08T00:08:14.000Z (about 5 years ago)
- Last Synced: 2025-01-22T11:47:45.476Z (over 1 year ago)
- Topics: gke, kubernetes, statefulset, valheim, valheim-dedicated-server
- Language: Python
- Homepage:
- Size: 55.7 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Valheim dedicated server
The source repository can be found in https://github.com/guilledipa/valheim
A CI pipeline is building https://hub.docker.com/r/guilledipa/valheim
## `/image`
This directory contains the `Dockerfile` to build a container for Valheim
dedicated server.
To build this image:
1. Install docker runtime
1. Build image
```shell
git clone https://github.com/guilledipa/valheim
cd valheim/image
docker build --tag guilledipa/valheim .
```
1. Run image
```shell
docker run -e VALHEIM_SERVER_NAME -e VALHEIM_WORLD_NAME= -e VALHEIM_PASSWORD guilledipa/valheim
```
## `/k8s`
This is an opinionated `StatefulSet` configuration to run the public image in
https://hub.docker.com/r/guilledipa/valheim
Assumptions:
- GKE (although can easliy be adapted to other K8s providers)
- Anthos Config Management – Config Sync
After installing Config Sync, create a `ConfigManagement` config.
Here a snippet:
```yaml
apiVErsion: configmanagement.gke.io/v1
kind: ConfigManagement
metadata: config-management
spec:
clusterName:
git:
syncRepo: https://github.com/guilledipa/valeim.git
syncBranch: main
secretTupe: none
policyDir: /k8s
```
Assuming a default service account is being used for the cluster:
```shell
kubectl -n config-management-system annotate serviceaccount importer iam.gke.io/gcp-service-account=${PROJECT_ID}-compute@developer.gserviceaccount.com
```
## `/DM`
**TODO(guilledipa):** Add GCP Deployment manager configs