Skip to content

Commit

Permalink
Add Headless Service for agones-allocator
Browse files Browse the repository at this point in the history
  • Loading branch information
govargo committed Dec 1, 2023
1 parent 6fd270d commit 0e2ea03
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions install/helm/agones/templates/service/allocation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ spec:
protocol: TCP
{{- end }}
type: {{ .Values.agones.allocator.service.serviceType }}
{{- if and (eq .Values.agones.allocator.service.serviceType "ClusterIP") (.Values.agones.allocator.service.headless) }}
clusterIP: None
{{- end }}
{{- if $useLoadBalancerIP }}
loadBalancerIP: {{ .Values.agones.allocator.service.loadBalancerIP }}
{{- end }}
Expand Down
1 change: 1 addition & 0 deletions install/helm/agones/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ agones:
service:
name: agones-allocator
serviceType: LoadBalancer
headless: false
loadBalancerIP: ""
loadBalancerSourceRanges: []
annotations: {}
Expand Down
2 changes: 2 additions & 0 deletions site/content/en/docs/Installation/Install Agones/helm.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ The following tables lists the configurable parameters of the Agones chart and t
| `agones.allocator.replicas` | The number of replicas to run in the deployment | `3` |
| `agones.allocator.service.name` | Service name for the allocator | `agones-allocator` |
| `agones.allocator.service.serviceType` | The [Service Type][service] of the HTTP Service | `LoadBalancer` |
| `agones.allocator.service.headless` | If the ServiceType is set to "ClusterIP" and "true", the [Service Type][service] is the [Headless Service][headless-service] for allocator | `false` |
| `agones.allocator.service.http.appProtocol` | The `appProtocol` to set on the Service for the http allocation port. If left blank, no value is set. | `` |
| `agones.allocator.service.http.nodePort` | If the ServiceType is set to "NodePort", this is the NodePort that the allocator http service is exposed on. | `30000-32767` |
| `agones.allocator.service.loadBalancerIP` | The [Load Balancer IP][loadBalancer] of the Agones allocator load balancer. Only works if the Kubernetes provider supports this option. | \`\` |
Expand Down Expand Up @@ -391,6 +392,7 @@ The following tables lists the configurable parameters of the Agones chart and t
[memory-constraints]: https://kubernetes.io/docs/tasks/administer-cluster/manage-resources/memory-constraint-namespace/
[ping]: {{< ref "/docs/Guides/ping-service.md" >}}
[service]: https://kubernetes.io/docs/concepts/services-networking/service/
[headless-service]: https://kubernetes.io/docs/concepts/services-networking/service/#headless-services
[allocator]: {{< ref "/docs/advanced/allocator-service.md" >}}
[loadBalancer]: https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer
[annotations]: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
Expand Down

0 comments on commit 0e2ea03

Please sign in to comment.