Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added affinity and tolerations to gameserver-allocator #910

Merged
merged 2 commits into from
Jul 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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