Skip to content

Commit

Permalink
Add NodePort to the helm template for agones-allocator service
Browse files Browse the repository at this point in the history
  • Loading branch information
jiwonaid committed Mar 1, 2022
1 parent c20053e commit 73228fc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions install/helm/agones/templates/service/allocation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,28 @@ spec:
- port: {{ .Values.agones.allocator.service.http.port }}
name: {{ .Values.agones.allocator.service.http.portName }}
targetPort: {{ .Values.agones.allocator.service.http.targetPort }}
{{- if eq .Values.agones.allocator.service.serviceType "NodePort" }}
nodePort: {{ .Values.agones.allocator.service.http.nodePort }}
{{- end }}
protocol: TCP
{{- if .Values.agones.allocator.service.grpc.enabled }}
{{- if ne .Values.agones.allocator.service.grpc.port .Values.agones.allocator.service.http.port }}
- port: {{ .Values.agones.allocator.service.grpc.port }}
name: {{ .Values.agones.allocator.service.grpc.portName }}
targetPort: {{ .Values.agones.allocator.service.grpc.targetPort }}
{{- if eq .Values.agones.allocator.service.serviceType "NodePort" }}
nodePort: {{ .Values.agones.allocator.service.grpc.nodePort }}
{{- end }}
protocol: TCP
{{- end }}
{{- end }}
{{- else if .Values.agones.allocator.service.grpc.enabled }}
- port: {{ .Values.agones.allocator.service.grpc.port }}
name: {{ .Values.agones.allocator.service.grpc.portName }}
targetPort: {{ .Values.agones.allocator.service.grpc.targetPort }}
{{- if eq .Values.agones.allocator.service.serviceType "NodePort" }}
nodePort: {{ .Values.agones.allocator.service.grpc.nodePort }}
{{- end }}
protocol: TCP
{{- end }}
type: {{ .Values.agones.allocator.service.serviceType }}
Expand Down
2 changes: 2 additions & 0 deletions install/helm/agones/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,13 @@ agones:
port: 443
portName: https
targetPort: 8443
nodePort: 0 # nodePort will be used if the serviceType is set to NodePort
grpc:
enabled: true
port: 443
portName: grpc
targetPort: 8443
nodePort: 0 # nodePort will be used if the serviceType is set to NodePort
serviceMetrics:
name: agones-allocator-metrics-service
annotations: {}
Expand Down

0 comments on commit 73228fc

Please sign in to comment.