How to run a Kubernetes job exactly once -
i have job restartpolicy: never
, completions , parallelism = 1. spec says: note if specify .spec.parallelism = 1 , .spec.completions = 1 , .spec.template.spec.restartpolicy = "never", same program may started twice.
can explain why this? , maybe offer solution k8s guys did not think about? :d
i think reason why
the same program may started twice.
is because of provided consistency guarantees. in distributed environments, guaranteeing various levels of strictness comes performance trade-off. might wrong, that’s guess.
Comments
Post a Comment