Kubernetes - how to run job only once

后端 未结 3 1259
一向
一向 2020-12-30 21:08

I have a job definition based on example from kubernetes website.

apiVersion: batch/v1
kind: Job
metadata:
  name: pi-with-timeout-6
spec:
  activeDeadlineSe         


        
3条回答
  •  萌比男神i
    2020-12-30 21:58

    Sadly there is currently no way to prevent the job controller to just respawn new pods when they fail, but the kubernetes community is working on a solution, see:

    "Backoff policy and failed pod limit" https://github.com/kubernetes/community/pull/583

提交回复
热议问题