Skip to content

Commit

Permalink
Merge pull request #48 from system-check/add-config-loadbalanceip
Browse files Browse the repository at this point in the history
Add config value for loadBalancerIP
  • Loading branch information
Addyvan authored Sep 30, 2024
2 parents 51da170 + c7227d1 commit 0325bc3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ helm install valheim-server valheim-k8s/valheim-k8s \
| `serverStorage.pvc.storageClassName` | The storageClass used to create the persistentVolumeClaim | `default` |
| `serverStorage.pvc.size` | The size of the persistent volume to be created | `5Gi` |
| `networking.serviceType` | The type of service e.g `NodePort`, `LoadBalancer` or `ClusterIP` | `LoadBalancer` |
| `networking.loadBalancerIP` | A user supplied IP for service type LoadBalancer | None |
| `networking.gamePort` | The UDP start port the server will listen on | `2456` |
| `networking.nodePort` | When service type is `NodePort`, assign a fixed UDP port to the server | `""` |
| `networking.publishQueryPort` | Expose the Steam query port (gamePort + 1) | `true` |
Expand Down
3 changes: 3 additions & 0 deletions chart/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,8 @@ spec:
{{- end }}
{{ end }}
type: {{ .Values.networking.serviceType }}
{{ if .Values.networking.loadBalancerIP }}
loadBalancerIP: {{ .Values.networking.loadBalancerIP | quote }}
{{ end }}
selector:
app: {{ .Release.Name }}

0 comments on commit 0325bc3

Please sign in to comment.