How to ensure Nodes are killed when Job is finished using Cluster Autoscaler in Kubernates I have large Kubernates jobs which take the whole resources of one node / droplet in Digitalocean (it's not running on AWS).
Using resources in a deploy.yaml, the cluster autoscaler works to scale up, but sometimes the nodes continue to run instead of killing / scaling down when the job is done.
How do I make sure the nodes get killed when the job is done? They are expensive!
When a Job completes, no more Pods are created, but the Pods are not deleted either.
https://kubernetes.io/docs/concepts/workloads/controllers/job/#job-termination-and-cleanup

clear it by another cronjob.
use operator to wrapper it and add remove mechanism in the operator.