Skip to content

Commit

Permalink
Merge pull request #54 from Addyvan/v2.0.1
Browse files Browse the repository at this point in the history
V2.0.1 - add hostNetworking
  • Loading branch information
Addyvan authored Sep 30, 2024
2 parents 1999127 + 97bad10 commit b8f08ac
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 3 deletions.
5 changes: 4 additions & 1 deletion chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ name: valheim-k8s
description: Basic chart for deploying valheim to a k8s homelab
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
type: application
version: 1.1.5
version: 2.0.1

# upstream repo https://github.com/lloesche/valheim-server-docker
# doesn't have semantic versions so this field mean anything:
appVersion: 1.16.0
3 changes: 3 additions & 0 deletions chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{ if eq .Values.useHostNetworking true }}
hostNetwork: true
{{ end }}
containers:
- image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
name: {{ .Release.Name }}
Expand Down
2 changes: 2 additions & 0 deletions chart/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{ if eq .Values.useHostNetworking false }}
apiVersion: v1
kind: Service
metadata:
Expand Down Expand Up @@ -35,3 +36,4 @@ spec:
{{ end }}
selector:
app: {{ .Release.Name }}
{{ end }}
5 changes: 4 additions & 1 deletion chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,17 @@ serverStorage:
pvc:
size: 5Gi

# if useHostNetworking is set to true then no service is created
# and the gamePort
useHostNetworking: false
networking:
# Optional additional annotations to add to the service
# serviceAnnotations: {}
# Optional additional labels to add to the service
# serviceLabels: {}
serviceType: LoadBalancer
gamePort: 2456
publishQueryPort: "true"
publishQueryPort: true
nodePort: 30373


Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.0
2.0.1

0 comments on commit b8f08ac

Please sign in to comment.