Skip to content

Commit

Permalink
added affinity and tolerations to gameserver-allocator (#910)
Browse files Browse the repository at this point in the history
added affinity and tolerations to gameserver-allocator
  • Loading branch information
daplho authored and pooneh-m committed Jul 15, 2019
1 parent aaa7e8a commit e7f3d43
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
8 changes: 8 additions & 0 deletions install/helm/agones/templates/service/allocation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,14 @@ spec:
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
{{- if .Values.agones.allocator.affinity }}
affinity:
{{ toYaml .Values.agones.allocator.affinity | indent 8 }}
{{- end }}
{{- if .Values.agones.allocator.tolerations }}
tolerations:
{{ toYaml .Values.agones.allocator.tolerations | indent 8 }}
{{- end }}
serviceAccountName: gameserver-allocator
volumes:
- name: tls
Expand Down
8 changes: 8 additions & 0 deletions install/helm/agones/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,14 @@ agones:
operator: "Equal"
value: "true"
effect: "NoExecute"
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 1
preference:
matchExpressions:
- key: stable.agones.dev/agones-system
operator: Exists
replicas: 3
http:
expose: true
Expand Down
15 changes: 15 additions & 0 deletions install/yaml/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1000,6 +1000,21 @@ spec:
release: agones-manual
heritage: Tiller
spec:
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- preference:
matchExpressions:
- key: stable.agones.dev/agones-system
operator: Exists
weight: 1

tolerations:
- effect: NoExecute
key: stable.agones.dev/agones-system
operator: Equal
value: "true"

serviceAccountName: gameserver-allocator
volumes:
- name: tls
Expand Down

0 comments on commit e7f3d43

Please sign in to comment.