diff --git a/install/helm/agones/templates/service/allocation.yaml b/install/helm/agones/templates/service/allocation.yaml index fa592ab8b0..a52312bcbc 100644 --- a/install/helm/agones/templates/service/allocation.yaml +++ b/install/helm/agones/templates/service/allocation.yaml @@ -72,6 +72,9 @@ spec: protocol: TCP {{- end }} type: {{ .Values.agones.allocator.service.serviceType }} +{{- if (ne .Values.agones.allocator.service.clusterIP "") }} + clusterIP: {{ .Values.agones.allocator.service.clusterIP }} +{{- end }} {{- if $useLoadBalancerIP }} loadBalancerIP: {{ .Values.agones.allocator.service.loadBalancerIP }} {{- end }} diff --git a/install/helm/agones/values.yaml b/install/helm/agones/values.yaml index 2eb5c58007..95879ad97d 100644 --- a/install/helm/agones/values.yaml +++ b/install/helm/agones/values.yaml @@ -212,6 +212,7 @@ agones: service: name: agones-allocator serviceType: LoadBalancer + clusterIP: "" loadBalancerIP: "" loadBalancerSourceRanges: [] annotations: {} diff --git a/site/content/en/docs/Installation/Install Agones/helm.md b/site/content/en/docs/Installation/Install Agones/helm.md index b7650cc4b5..1a06a469b5 100644 --- a/site/content/en/docs/Installation/Install Agones/helm.md +++ b/site/content/en/docs/Installation/Install Agones/helm.md @@ -274,15 +274,16 @@ 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.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.clusterIP` | The [Cluster IP][clusterIP] of the Agones allocator. If you want [Headless Service][headless-service] for Agones Allocator, you can set `None` to clusterIP. | \`\` | | `agones.allocator.service.loadBalancerIP` | The [Load Balancer IP][loadBalancer] of the Agones allocator load balancer. Only works if the Kubernetes provider supports this option. | \`\` | | `agones.allocator.service.loadBalancerSourceRanges` | The [Load Balancer SourceRanges][loadBalancer] of the Agones allocator load balancer. Only works if the Kubernetes provider supports this option. | `[]` | | `agones.allocator.service.annotations` | [Annotations][annotations] added to the Agones allocator service | `{}` | | `agones.allocator.service.http.enabled` | If true the [allocator service][allocator] will respond to [REST requests][rest-requests] | `true` | +| `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.port` | The port that is exposed externally by the [allocator service][allocator] for [REST requests][rest-requests] | `443` | | `agones.allocator.service.http.portName` | The name of exposed port | `http` | | `agones.allocator.service.http.targetPort` | The port that is used by the allocator pod to listen for [REST requests][rest-requests]. Note that the allocator server cannot bind to low numbered ports. | `8443` | +| `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.grpc.enabled` | If true the [allocator service][allocator] will respond to [gRPC requests][grpc-requests] | `true` | | `agones.allocator.service.grpc.port` | The port that is exposed externally by the [allocator service][allocator] for [gRPC requests][grpc-requests] | `443` | | `agones.allocator.service.grpc.portName` | The name of exposed port | `` | @@ -431,6 +432,8 @@ 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/ +[clusterIP]: https://kubernetes.io/docs/concepts/services-networking/service/#type-clusterip +[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/