Skip to content

Commit

Permalink
Support appProtocol (#3502)
Browse files Browse the repository at this point in the history
* Support appProtocol

* review update

* appProtocol in http service
  • Loading branch information
Kalaiselvi84 authored Nov 15, 2023
1 parent 43312dc commit 25e0c4a
Show file tree
Hide file tree
Showing 3 changed files with 71 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,6 +38,9 @@ spec:
- port: {{ .Values.agones.allocator.service.http.port }}
name: {{ .Values.agones.allocator.service.http.portName }}
targetPort: {{ .Values.agones.allocator.service.http.targetPort }}
{{- if .Values.agones.allocator.service.http.appProtocol }}
appProtocol: {{.Values.agones.allocator.service.http.appProtocol}}
{{- end}}
{{- if eq .Values.agones.allocator.service.serviceType "NodePort" }}
nodePort: {{ .Values.agones.allocator.service.http.nodePort }}
{{- end }}
Expand All @@ -47,6 +50,9 @@ spec:
- port: {{ .Values.agones.allocator.service.grpc.port }}
name: {{ .Values.agones.allocator.service.grpc.portName }}
targetPort: {{ .Values.agones.allocator.service.grpc.targetPort }}
{{- if .Values.agones.allocator.service.grpc.appProtocol }}
appProtocol: {{.Values.agones.allocator.service.grpc.appProtocol}}
{{- end}}
{{- if eq .Values.agones.allocator.service.serviceType "NodePort" }}
nodePort: {{ .Values.agones.allocator.service.grpc.nodePort }}
{{- end }}
Expand All @@ -57,6 +63,9 @@ spec:
- port: {{ .Values.agones.allocator.service.grpc.port }}
name: {{ .Values.agones.allocator.service.grpc.portName }}
targetPort: {{ .Values.agones.allocator.service.grpc.targetPort }}
{{- if .Values.agones.allocator.service.grpc.appProtocol }}
appProtocol: {{.Values.agones.allocator.service.grpc.appProtocol}}
{{- end}}
{{- if eq .Values.agones.allocator.service.serviceType "NodePort" }}
nodePort: {{ .Values.agones.allocator.service.grpc.nodePort }}
{{- end }}
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 @@ -217,12 +217,14 @@ agones:
annotations: {}
http:
enabled: true
appProtocol: ""
port: 443
portName: https
targetPort: 8443
nodePort: 0 # nodePort will be used if the serviceType is set to NodePort
grpc:
enabled: true
appProtocol: ""
port: 443
portName: grpc
targetPort: 8443
Expand Down
Loading

0 comments on commit 25e0c4a

Please sign in to comment.