forked from catalin/fukuops
feat: add valheim chart and argo app
This commit is contained in:
parent
3e8d14d5ae
commit
4b60b6b8ad
15 changed files with 1048 additions and 3 deletions
34
k8s/charts/valheim-server/templates/service.yaml
Normal file
34
k8s/charts/valheim-server/templates/service.yaml
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ include "valheim-server.fullname" . }}
|
||||
labels:
|
||||
{{- include "valheim-server.labels" . | nindent 4 }}
|
||||
{{- with .Values.service.annotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
type: {{ .Values.service.type }}
|
||||
{{- if and (eq .Values.service.type "LoadBalancer") .Values.service.loadBalancerIP }}
|
||||
loadBalancerIP: {{ .Values.service.loadBalancerIP }}
|
||||
{{- end }}
|
||||
{{- if and (eq .Values.service.type "LoadBalancer") .Values.service.loadBalancerSourceRanges }}
|
||||
loadBalancerSourceRanges:
|
||||
{{- toYaml .Values.service.loadBalancerSourceRanges | nindent 4 }}
|
||||
{{- end }}
|
||||
ports:
|
||||
- port: {{ .Values.server.port }}
|
||||
targetPort: game
|
||||
protocol: UDP
|
||||
name: game
|
||||
- port: {{ add .Values.server.port 1 }}
|
||||
targetPort: game-1
|
||||
protocol: UDP
|
||||
name: game-1
|
||||
- port: {{ add .Values.server.port 2 }}
|
||||
targetPort: game-2
|
||||
protocol: UDP
|
||||
name: game-2
|
||||
selector:
|
||||
{{- include "valheim-server.selectorLabels" . | nindent 4 }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue