Skip to content

Commit b8f08ac

Browse files
authored
Merge pull request #54 from Addyvan/v2.0.1
V2.0.1 - add hostNetworking
2 parents 1999127 + 97bad10 commit b8f08ac

File tree

5 files changed

+14
-3
lines changed

5 files changed

+14
-3
lines changed

chart/Chart.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@ name: valheim-k8s
33
description: Basic chart for deploying valheim to a k8s homelab
44
icon: https://www.google.com/url?sa=i&url=https%3A%2F%2Fstore.steampowered.com%2Fapp%2F892970%2FValheim%2F&psig=AOvVaw1MMOQJzse-eyruGtGG0DEs&ust=1641045420126000&source=images&cd=vfe&ved=0CAsQjRxqFwoTCIDmhd2YjvUCFQAAAAAdAAAAABAJ
55
type: application
6-
version: 1.1.5
6+
version: 2.0.1
7+
8+
# upstream repo https://github.com/lloesche/valheim-server-docker
9+
# doesn't have semantic versions so this field mean anything:
710
appVersion: 1.16.0

chart/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ spec:
2222
tolerations:
2323
{{- toYaml . | nindent 8 }}
2424
{{- end }}
25+
{{ if eq .Values.useHostNetworking true }}
26+
hostNetwork: true
27+
{{ end }}
2528
containers:
2629
- image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
2730
name: {{ .Release.Name }}

chart/templates/service.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{ if eq .Values.useHostNetworking false }}
12
apiVersion: v1
23
kind: Service
34
metadata:
@@ -35,3 +36,4 @@ spec:
3536
{{ end }}
3637
selector:
3738
app: {{ .Release.Name }}
39+
{{ end }}

chart/values.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,17 @@ serverStorage:
2222
pvc:
2323
size: 5Gi
2424

25+
# if useHostNetworking is set to true then no service is created
26+
# and the gamePort
27+
useHostNetworking: false
2528
networking:
2629
# Optional additional annotations to add to the service
2730
# serviceAnnotations: {}
2831
# Optional additional labels to add to the service
2932
# serviceLabels: {}
3033
serviceType: LoadBalancer
3134
gamePort: 2456
32-
publishQueryPort: "true"
35+
publishQueryPort: true
3336
nodePort: 30373
3437

3538

version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.0.0
1+
2.0.1

0 commit comments

Comments
 (0)