Skip to content

Handle ending of a pod #694

Answered by nolar
lperdereau asked this question in Q&A
Feb 19, 2021 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hello. Thank you.

Kopf does not support linear scenarios — mostly because Kubernetes itself is highly non-linear and event-driven. For linear workflows, I would recommend looking at specialised workflow engines like Argo, maybe something else.

For this described task, you have to react to pods' changes and patch the relevant parent resource. For patching, you will have to know its name (and namespace — for cross-namespace patching). I would recommend putting that name into the labels when you create pods — basically, the same as built-in Jobs do with their Pods.

Optionally, if you need to aggregate the status of several children (pods) to make a decision on the next step, you also need an…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@lperdereau
Comment options

@thismatters
Comment options

Answer selected by lperdereau
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants