Skip to content

Commit 971124a

Browse files
sethp-nrfntlnz
authored andcommitted
Add blanket "NoSchedule" toleration to trace pod
We have a few nodes that we couldn't `kubectl trace` effectively because they were tainted to prevent arbitrary pods from being scheduled to them. In this case, however, we are specifically requesting for a pod to be scheduled to that node, but the taint was leaving the pod hanging in `Pending` until we manually edited the trace pod to add this toleration.
1 parent 9251eba commit 971124a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/tracejob/job.go

+6
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,12 @@ func (t *TraceJobClient) CreateJob(nj TraceJob) (*batchv1.Job, error) {
337337
},
338338
},
339339
},
340+
Tolerations: []apiv1.Toleration{
341+
apiv1.Toleration{
342+
Effect: apiv1.TaintEffectNoSchedule,
343+
Operator: apiv1.TolerationOpExists,
344+
},
345+
},
340346
},
341347
},
342348
},

0 commit comments

Comments
 (0)