Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add NodePort to the helm template for agones-allocator service #2476

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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