Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-59789

Cleanup/GC Jenkins Slaves when Jenkins Master is removed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • kubernetes-plugin
    • None

      Hi,

       

      we see the problem, that Jenkins Slaves are not cleaned up properly when the Jenkins Master is removed from Kubernetes.

       

      We thought about multiply solutions (like a cronjob to clean them up) but we think the best approach would be to allow Kubernetes to clean them up by itself:

       

      https://kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/

       

      To be able to do so, the ownerReference field for Jenkins Slaves need to point to the Jenkins Master.

            Unassigned Unassigned
            siegfried Sigi Kiermayer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: