Can we launch a deployment in Kubernetes with time limit if not then is any alternative available?

4/15/2021

I am trying to find a way through which we can launch a deployment for some limited time which we set at the time of launch

-- Harshet jain
kubernetes

1 Answer

4/15/2021

I guess you want to run a Job in that case, it will run a pod and when you will specify the activeDeadlineSeconds it will be terminated after those second had passed.

you can read it all here https://kubernetes.io/docs/concepts/workloads/controllers/job/

-- danny kaplunski
Source: StackOverflow