Valheim dedicated server docker image for K8s StatefulSet.
2.0K
The source repository can be found in https://github.com/guilledipa/valheim
A CI pipeline is building https://hub.docker.com/r/guilledipa/valheim
/imageThis directory contains the Dockerfile to build a container for Valheim
dedicated server.
To build this image:
Install docker runtime
Build image
git clone https://github.com/guilledipa/valheim
cd valheim/image
docker build --tag guilledipa/valheim .
Run image
docker run -e VALHEIM_SERVER_NAME -e VALHEIM_WORLD_NAME= -e VALHEIM_PASSWORD guilledipa/valheim
/k8sThis is an opinionated StatefulSet configuration to run the public image in
https://hub.docker.com/r/guilledipa/valheim
Assumptions:
After installing Config Sync, create a ConfigManagement config.
Here a snippet:
apiVErsion: configmanagement.gke.io/v1
kind: ConfigManagement
metadata: config-management
spec:
clusterName: <Your Cluster Name>
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:
kubectl -n config-management-system annotate serviceaccount importer iam.gke.io/gcp-service-account=${PROJECT_ID}[email protected]
/DMTODO(guilledipa): Add GCP Deployment manager configs
Content type
Image
Digest
Size
792 MB
Last updated
over 5 years ago
docker pull guilledipa/valheim