/.github/scripts/performance-benchmarking/{get-job-json, run-benchmarks}.sh: use dedicated node

This commit is contained in:
Dustin Brown
2021-01-07 11:17:37 -08:00
parent dd3f31929f
commit 1fc64f5578
2 changed files with 13 additions and 2 deletions
@@ -42,7 +42,18 @@ echo '
]
}
],
"restartPolicy": "Never"
"restartPolicy": "Never",
"nodeSelector": {
"performance-benchmarking-worker": "true"
},
"tolerations": [
{
"effect": "NoSchedule",
"key": "dedicated",
"operator": "Equal",
"value": "performance-benchmarking-worker"
}
]
}
}
}
@@ -35,7 +35,7 @@ source "$TEMPLATE_SCRIPT" "$jobname" "$FROM_VERSION" "$TO_VERSION" "$timeprefix"
KUBECONFIG="$KUBECONFIG" kubectl apply -f job.json
out=$(KUBECONFIG="$KUBECONFIG" kubectl wait job/"$jobname" --for=condition=complete -n performance-benchmarking --timeout=600s)
out=$(KUBECONFIG="$KUBECONFIG" kubectl wait job/"$jobname" --for=condition=complete -n performance-benchmarking --timeout=720s || true)
if [ "$out" != "job.batch/$jobname condition met" ]; then
echo "output of kubectl wait: $out"