Skip to content

Commit

Permalink
Add allocator resources (#1874)
Browse files Browse the repository at this point in the history
* Add allocator resources (#1873)

* Added explanation on how to set values (#1873)

Co-authored-by: pooneh-m <[email protected]>
Co-authored-by: Mark Mandel <[email protected]>
  • Loading branch information
3 people authored Nov 2, 2020
1 parent 9ba5ad4 commit 8ef7d31
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
4 changes: 4 additions & 0 deletions install/helm/agones/templates/service/allocation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@ spec:
- mountPath: /home/allocator/client-ca
name: client-ca
readOnly: true
{{- if .Values.agones.allocator.resources }}
resources:
{{ toYaml .Values.agones.allocator.resources | indent 10 }}
{{- end }}
{{- if .Values.agones.image.controller.pullSecret }}
imagePullSecrets:
- name: {{.Values.agones.image.controller.pullSecret}}
Expand Down
10 changes: 10 additions & 0 deletions install/helm/agones/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ agones:
priorityClassName: agones-system
controller:
resources: {}
# requests:
# cpu: 1
# memory: 256Mi
nodeSelector: {}
annotations: {}
tolerations:
Expand Down Expand Up @@ -69,6 +72,9 @@ agones:
ping:
install: true
resources: {}
# requests:
# cpu: 1
# memory: 256Mi
nodeSelector: {}
annotations: {}
tolerations:
Expand Down Expand Up @@ -111,6 +117,10 @@ agones:
apiServerQPS: 400
apiServerQPSBurst: 500
annotations: {}
resources: {}
# requests:
# cpu: 1
# memory: 256Mi
healthCheck:
initialDelaySeconds: 3
periodSeconds: 3
Expand Down
6 changes: 4 additions & 2 deletions site/content/en/docs/Installation/Install Agones/helm.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ The following tables lists the configurable parameters of the Agones chart and t
| `agones.controller.healthCheck.periodSeconds` | Seconds between every liveness probe (in seconds) | `3` |
| `agones.controller.healthCheck.failureThreshold` | Number of times before giving up (in seconds) | `3` |
| `agones.controller.healthCheck.timeoutSeconds` | Number of seconds after which the probe times out (in seconds) | `1` |
| `agones.controller.resources` | Controller resource requests/limit | `{}` |
| `agones.controller.resources` | Controller [resource requests/limit][resources] | `{}` |
| `agones.controller.generateTLS` | Set to true to generate TLS certificates or false to provide your own certificates in `certs/*` | `true` |
| `agones.controller.nodeSelector` | Controller [node labels][nodeSelector] for pod assignment | `{}` |
| `agones.controller.tolerations` | Controller [toleration][toleration] labels for pod assignment | `[]` |
Expand Down Expand Up @@ -222,7 +222,7 @@ The following tables lists the configurable parameters of the Agones chart and t
| `agones.ping.healthCheck.periodSeconds` | Seconds between every liveness probe (in seconds) | `3` |
| `agones.ping.healthCheck.failureThreshold` | Number of times before giving up (in seconds) | `3` |
| `agones.ping.healthCheck.timeoutSeconds` | Number of seconds after which the probe times out (in seconds) | `1` |
| `agones.ping.resources` | Ping pods resource requests/limit | `{}` |
| `agones.ping.resources` | Ping pods [resource requests/limit][resources] | `{}` |
| `agones.ping.nodeSelector` | Ping [node labels][nodeSelector] for pod assignment | `{}` |
| `agones.ping.tolerations` | Ping [toleration][toleration] labels for pod assignment | `[]` |
| `agones.ping.affinity` | Ping [affinity][affinity] settings for pod assignment | `{}` |
Expand All @@ -248,6 +248,7 @@ The following tables lists the configurable parameters of the Agones chart and t

| Parameter | Description | Default |
| --------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ---------------------- |
| `agones.allocator.resources` | Allocator pods [resource requests/limit][resources] | `{}` |
| `agones.allocator.apiServerQPS` | Maximum sustained queries per second that an allocator should be making against API Server | `400` |
| `agones.allocator.apiServerQPSBurst` | Maximum burst queries per second that an allocator should be making against API Server | `500` |
| `agones.allocator.allocationTimeout` | Remote allocation call timeout. | `10s` |
Expand All @@ -268,6 +269,7 @@ The following tables lists the configurable parameters of the Agones chart and t
[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/
[resources]: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/


Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
Expand Down

0 comments on commit 8ef7d31

Please sign in to comment.