Team,
We need to roll out some drivers on worker nodes of a K8s cluster and our flow is as below:
- cordon node [no more scheduling]
- wait for jobs to complete
- destroy
Is there a way I can automate this using K8s options itself instead of writing some bash script to do those checks every time because we don't know when pods would complete. So, can we configure the master API server to check cordon node and destroy if it has no jobs running?