Skip to content

Add ttlSecondsAfterFinished to the Kubernetes Jobs.

Adrian Sali requested to merge adsali/cleanup-jobs into azure/m18-master

Problem Eraser does not clean up images of completed pods.

Solution Add ttlSecondsAfterFinished: 3600 for the kubernetes jobs ran during the deployment. That way, they are cleaned up once the deployment is done. This is needed for eraser to clean up unused images.

Setting the ttlSecondsAfterFinished is also recommended by the Kubernetes documentation on Jobs.

Edited by Adrian Sali

Merge request reports