Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

k8s: delete completed pods #169

Merged
merged 1 commit into from
Jan 17, 2019

Conversation

roksys
Copy link
Contributor

@roksys roksys commented Jan 17, 2019

Signed-off-by: Rokas Maciulaitis rokas.maciulaitis@cern.ch

@roksys roksys added this to the Serverless-Workflows milestone Jan 17, 2019
@ghost ghost assigned roksys Jan 17, 2019
@ghost ghost added the Status: in review label Jan 17, 2019
@@ -89,5 +89,6 @@ def _create_job_spec(self, name, command=None, image=None,
]
job.spec = spec
job.spec.template.spec.restart_policy = 'Never'
job.spec.ttl_seconds_after_finished = 60
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please introduce a variable in the main config.py and just import it here.

* Setting ttl_seconds_after_finished = 60, to delete completed
  pods. Closes reanahub/reana-workflow-engine-serial/issues/58

Signed-off-by: Rokas Maciulaitis <rokas.maciulaitis@cern.ch>
Copy link
Member

@tiborsimko tiborsimko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me with minikube v1.12.1 and kvm2 on GNU/Linux.

$ minikube start --kubernetes-version="v1.12.1" --vm-driver=kvm2 --memory 3072 --feature-gates="TTLAfterFinished=true" 

@tiborsimko tiborsimko merged commit 19e9207 into reanahub:master Jan 17, 2019
@ghost ghost removed the Status: in review label Jan 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants