Skip to content

Commit

Permalink
Use RequiredDuringSchedulingIgnoredDuringExecution rather than Prefer… (
Browse files Browse the repository at this point in the history
#41)

Use RequiredDuringSchedulingIgnoredDuringExecution rather than PreferredDuringSchedulingIgnoredDuringExecution

Signed-off-by: Raul Sevilla <[email protected]>
  • Loading branch information
rsevilla87 authored Sep 28, 2023
1 parent db06665 commit 48e0bfb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pkg/runner/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,9 @@ const (

var workerAffinity = &corev1.Affinity{
NodeAffinity: &corev1.NodeAffinity{
PreferredDuringSchedulingIgnoredDuringExecution: []corev1.PreferredSchedulingTerm{
{
Weight: 100,
Preference: corev1.NodeSelectorTerm{
RequiredDuringSchedulingIgnoredDuringExecution: &corev1.NodeSelector{
NodeSelectorTerms: []corev1.NodeSelectorTerm{
{
MatchExpressions: []corev1.NodeSelectorRequirement{
{
Key: "node-role.kubernetes.io/worker",
Expand Down

0 comments on commit 48e0bfb

Please sign in to comment.