Skip to content

Commit c7a8a7c

Browse files
Tolerate all node taints
1 parent e366267 commit c7a8a7c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/cmd/ssh-proxy.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ func (o *ProxyOptions) Run(args []string) error {
159159
}
160160
sshProxyPod = job.Spec.Template.ObjectMeta.Name
161161
fmt.Printf("pod/%s created\n", sshProxyPod)
162+
time.Sleep(2 * time.Second)
162163
}
163164

164165
fmt.Printf("Connecting via pod/%s", sshProxyPod)
@@ -223,6 +224,7 @@ func getJobObject() *batchv1.Job {
223224
},
224225
Spec: v1.PodSpec{
225226
RestartPolicy: v1.RestartPolicyNever,
227+
Tolerations: []v1.Toleration{{Operator: v1.TolerationOpExists}},
226228
Containers: []core.Container{
227229
{
228230
Name: "busybox",

0 commit comments

Comments
 (0)