Skip to content

Commit

Permalink
Merge pull request #29 from danmx/overwrite_image
Browse files Browse the repository at this point in the history
fix(helm): allowing to specify the container image
  • Loading branch information
Addyvan authored Apr 20, 2021
2 parents 93f6eca + 51ab978 commit dc7456e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ helm install valheim-server valheim-k8s/valheim-k8s \
| `storage.pvc.size` | The size of the persistent volume to be created | `1Gi` |
| `networking.serviceType` | The type of service e.g `NodePort`, `LoadBalancer` or `ClusterIP` | `LoadBalancer` |
| `nodeSelector` | | `{}` |
| `image.repository` | Specifies container image repository | `lloesche/valheim-server` |
| `image.tag` | Specifies container image tag | `latest` |

## Persistence

Expand Down
2 changes: 1 addition & 1 deletion chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: valheim-k8s
description: Basic chart for deploying valheim to a k8s homelab
type: application
version: 0.1.0
version: 0.2.0
appVersion: 1.16.0
2 changes: 1 addition & 1 deletion chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- image: lloesche/valheim-server:latest
- image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
name: valheim-server
env:
- name: SERVER_NAME
Expand Down
4 changes: 4 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ password: password

resources: {}

image:
repository: lloesche/valheim-server
tag: latest

storage:
kind: hostvol
hostvol:
Expand Down

0 comments on commit dc7456e

Please sign in to comment.