Skip to content

Commit

Permalink
fix: add affinity to database migration job
Browse files Browse the repository at this point in the history
  • Loading branch information
ZavenArra committed Mar 11, 2022
1 parent 766fe1c commit 8c71336
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions deployment/base/database-migration-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ spec:
backoffLimit: 1 # allow for one re-try of the migration
template:
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: doks.digitalocean.com/node-pool
operator: In
values:
- microservices-node-pool
containers:
- name: migration
image: greenstand/treetracker-stakeholder-api:VERSION
Expand Down

0 comments on commit 8c71336

Please sign in to comment.