Garbage Collector for objects without owner references

Hello community!

In the doc there is a section Garbage Collection | Kubernetes which is named “Objects without owner references”. But it actually doesn’t explain how garbage collector works with such an objects.
Thus, I have several questions:

  • Will those objects without owner references ever be considered for cleaning up by GC?
  • What if an object had an owner reference but then owner reference was deleted?

Can someone please clarify?

Thank you!

just in case, we use GKE, versions: v1.21.14-gke.4300, v1.22.16-gke.1300 and v1.23.13-gke.900

1 Like