<p>Is it possible to remove a pod and service after a period of time? Say 24hrs, also there should be a capability to cancel the remove action if required. I believe it can be possible by using jobs, but not sure how it can be achieved, I have been reading about them, any help is appreciated.</p>

<p>You can create a Job which executes and then removes itself after completion, that includes a sleep so that it lasts 24 hours.</p>
<p>You can create a Cronjob with kubectl access that deletes a pod with that selector every 24h, and then change the selector if you want to keep it.</p>
<p>I would just bundle it into a shell script that launches the pod, include a timer after it, and then a remove command. Just kill the process if you want to keep the pod.</p>
