mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-01-23 15:39:02 +00:00
[valheim] new chart (#605)
This commit is contained in:
parent
d9f263e2ee
commit
628d8df6f4
24
charts/valheim/.helmignore
Normal file
24
charts/valheim/.helmignore
Normal file
@ -0,0 +1,24 @@
|
||||
# Patterns to ignore when building packages.
|
||||
# This supports shell glob matching, relative path matching, and
|
||||
# negation (prefixed with !). Only one pattern per line.
|
||||
.DS_Store
|
||||
# Common VCS dirs
|
||||
.git/
|
||||
.gitignore
|
||||
.bzr/
|
||||
.bzrignore
|
||||
.hg/
|
||||
.hgignore
|
||||
.svn/
|
||||
# Common backup files
|
||||
*.swp
|
||||
*.bak
|
||||
*.tmp
|
||||
*~
|
||||
# Various IDEs
|
||||
.project
|
||||
.idea/
|
||||
*.tmproj
|
||||
.vscode/
|
||||
# OWNERS file for Kubernetes
|
||||
OWNERS
|
20
charts/valheim/Chart.yaml
Normal file
20
charts/valheim/Chart.yaml
Normal file
@ -0,0 +1,20 @@
|
||||
apiVersion: v2
|
||||
appVersion: latest
|
||||
description: Valheim dedicated gameserver with automatic update and world backup support
|
||||
name: valheim
|
||||
version: 1.0.0
|
||||
kubeVersion: ">=1.16.0-0"
|
||||
keywords:
|
||||
- valheim
|
||||
home: https://github.com/k8s-at-home/charts/tree/master/charts/valheim
|
||||
icon: https://raw.githubusercontent.com/lloesche/valheim-server-docker/main/misc/Logo_valheim.png
|
||||
sources:
|
||||
- https://github.com/lloesche/valheim-server-docker
|
||||
- https://hub.docker.com/r/lloesche/valheim-server
|
||||
maintainers:
|
||||
- name: rust84
|
||||
email: owner@russellhall.co.uk
|
||||
dependencies:
|
||||
- name: common
|
||||
repository: https://k8s-at-home.com/charts/
|
||||
version: 3.0.1
|
8
charts/valheim/OWNERS
Normal file
8
charts/valheim/OWNERS
Normal file
@ -0,0 +1,8 @@
|
||||
approvers:
|
||||
- billimek
|
||||
- onedr0p
|
||||
- bjw-s
|
||||
reviewers:
|
||||
- billimek
|
||||
- onedr0p
|
||||
- bjw-s
|
67
charts/valheim/README.md
Normal file
67
charts/valheim/README.md
Normal file
@ -0,0 +1,67 @@
|
||||
# valheim
|
||||
|
||||
This is a helm chart for [Valheim-server-docker](https://github.com/lloesche/valheim-server-docker).
|
||||
|
||||
**This chart is not maintained by the upstream project and any issues with the chart should be raised [here](https://github.com/k8s-at-home/charts/issues/new/choose)**
|
||||
|
||||
## TL;DR;
|
||||
|
||||
```shell
|
||||
$ helm repo add k8s-at-home https://k8s-at-home.com/charts/
|
||||
$ helm install k8s-at-home/valheim
|
||||
```
|
||||
|
||||
## Installing the Chart
|
||||
|
||||
To install the chart with the release name `my-release`:
|
||||
|
||||
```console
|
||||
helm install --name my-release k8s-at-home/valheim
|
||||
```
|
||||
|
||||
## Uninstalling the Chart
|
||||
|
||||
To uninstall/delete the `my-release` deployment:
|
||||
|
||||
```console
|
||||
helm delete my-release --purge
|
||||
```
|
||||
|
||||
The command removes all the Kubernetes components associated with the chart and deletes the release.
|
||||
|
||||
## Configuration
|
||||
Read through the charts [values.yaml](https://github.com/k8s-at-home/charts/blob/master/charts/valheim/values.yaml)
|
||||
file. It has several commented out suggested values.
|
||||
Additionally you can take a look at the common library [values.yaml](https://github.com/k8s-at-home/charts/blob/master/charts/common/values.yaml) for more (advanced) configuration options.
|
||||
|
||||
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
|
||||
```console
|
||||
helm install valheim \
|
||||
--set env.SERVER_NAME="My Server" \
|
||||
k8s-at-home/valheim
|
||||
```
|
||||
Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the
|
||||
chart. For example,
|
||||
```console
|
||||
helm install valheim k8s-at-home/valheim --values values.yaml
|
||||
```
|
||||
|
||||
```yaml
|
||||
image:
|
||||
tag: ...
|
||||
```
|
||||
|
||||
---
|
||||
**NOTE**
|
||||
|
||||
If you get
|
||||
```console
|
||||
Error: rendered manifests contain a resource that already exists. Unable to continue with install: existing resource conflict: ...`
|
||||
```
|
||||
it may be because you uninstalled the chart with `skipuninstall` enabled, you need to manually delete the pvc or use `existingClaim`.
|
||||
|
||||
---
|
||||
|
||||
## Upgrading an existing Release to a new major version
|
||||
|
||||
A major chart version change (like 4.0.1 -> 5.0.0) indicates that there is an incompatible breaking change potentially needing manual actions.
|
1
charts/valheim/templates/NOTES.txt
Normal file
1
charts/valheim/templates/NOTES.txt
Normal file
@ -0,0 +1 @@
|
||||
{{- include "common.notes.defaultNotes" . -}}
|
1
charts/valheim/templates/common.yaml
Normal file
1
charts/valheim/templates/common.yaml
Normal file
@ -0,0 +1 @@
|
||||
{{ include "common.all" . }}
|
66
charts/valheim/values.yaml
Normal file
66
charts/valheim/values.yaml
Normal file
@ -0,0 +1,66 @@
|
||||
#
|
||||
# IMPORTANT NOTE
|
||||
#
|
||||
# This chart inherits from our common library chart. You can check the default values/options here:
|
||||
# https://github.com/k8s-at-home/charts/tree/master/charts/common/values.yaml
|
||||
#
|
||||
|
||||
image:
|
||||
repository: lloesche/valheim-server
|
||||
pullPolicy: IfNotPresent
|
||||
tag: latest
|
||||
|
||||
strategy:
|
||||
type: Recreate
|
||||
|
||||
## See more environment varaibles in the valheim-server-docker documentation
|
||||
# https://github.com/lloesche/valheim-server-docker#environment-variables
|
||||
env: {}
|
||||
# SERVER_NAME: My Server
|
||||
# SERVER_PORT: 2456
|
||||
# WORLD_NAME: Dedicated
|
||||
# SERVER_PASS: secret
|
||||
# SERVER_PUBLIC: 1
|
||||
# UPDATE_INTERVAL: 10800 # every 3 hours
|
||||
# BACKUPS: true
|
||||
# BACKUPS_INTERVAL: 43200 # every 12 hours
|
||||
# BACKUPS_DIRECTORY: /config/backups
|
||||
# BACKUPS_MAX_AGE: 3
|
||||
# BACKUPS_DIRECTORY_PERMISSIONS: 755
|
||||
# BACKUPS_FILE_PERMISSIONS: 644
|
||||
# CONFIG_DIRECTORY_PERMISSIONS: 755
|
||||
# WORLDS_DIRECTORY_PERMISSIONS: 755
|
||||
# WORLDS_FILE_PERMISSIONS: 644
|
||||
# STEAMCMD_ARGS: validate
|
||||
# DNS_1: 8.8.8.8
|
||||
# DNS_2: 8.8.4.4
|
||||
|
||||
service:
|
||||
type: LoadBalancer
|
||||
externalTrafficPolicy: Cluster
|
||||
loadBalancerIP:
|
||||
port:
|
||||
port: 2456
|
||||
protocol: UDP
|
||||
additionalPorts:
|
||||
- name: valheim-2
|
||||
port: 2457
|
||||
protocol: UDP
|
||||
targetPort: 2457
|
||||
- name: valheim-3
|
||||
port: 2458
|
||||
protocol: UDP
|
||||
targetPort: 2458
|
||||
|
||||
persistence:
|
||||
config:
|
||||
enabled: false
|
||||
mountPath: /config
|
||||
|
||||
probes:
|
||||
liveness:
|
||||
enabled: false
|
||||
readiness:
|
||||
enabled: false
|
||||
startup:
|
||||
enabled: false
|
Loading…
Reference in New Issue
Block a user