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

Popular posts from this blog

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

java - How to implement an entity bound odata action in olingo v4.3 -