Skip to content

Commit

Permalink
fix: don't schedule on spot nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
akurilov committed Apr 19, 2024
1 parent 3b9ce47 commit 6cbc2a0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 9 additions & 0 deletions helm/source-telegram/templates/sts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,15 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 1
preference:
matchExpressions:
- key: spot
operator: In
values:
- "false"
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
Expand Down
1 change: 0 additions & 1 deletion helm/source-telegram/values-demo-0.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
replicaCount: 3
api:
writer:
uri: "api:50051"

0 comments on commit 6cbc2a0

Please sign in to comment.