1

I have a job which currently runs with "pararellism" spec set to 5. (5 running pods at each given moment) I want the job to stop spawning new pods after each fail, but let the current running pods end uninterrupted.

Tried to set pararellism to 1 in yaml and apply the changes, but it instantly moves the pod to termination phase.

Sadly I cannot upload the yml configuration.

Jonas
  • 121,568
  • 97
  • 310
  • 388

1 Answers1

0

You could try with --cascade=orphan flag to orphan these dependents using kubectl

kubectl delete jobs --cascade=orphan
Siegfred V.
  • 1,143
  • 3
  • 12
  • Sounds promising, I will give it a shot tomorrow, but should I be worried about any resources hanging? Im not too familiar with k8s. – John Appleboim May 03 '23 at 13:03