I am a recent Kubernetes user and would like to know if there is any way to create a cronjob that allows me to delete a specific pod from my cluster. After deleting it, I know it will be recreated and that's exactly what I want ... a refresh.
It is possible?
Thanks.
You could use a Kubernetes CronJob. They work similarly to a regular cronjob, except each invocation creates a pod which is scheduled on an arbitrary node within the cluster rather than on a consistent one (unless you use the Affinity mechanics within Kubernetes).
Since a CronJob creates a pod and a pod can contain arbitrary code, I'll leave the final process of wiring this up as an exercise for the reader, but a good place to start would be the Bitnami kubectl Docker image which can take advantage of in cluster authentication using Service Accounts and RBAC.
Lastly, what you're asking to do sounds like an XY Problem. You may want to take a step back and think about whether or not a different approach or design pattern might work better here.