concept

Ownership and garbage collection

Owner references identify owners by kind, name and UID. Cascading deletion depends on ownership and propagation policy, not labels alone.

Formal Syntax & Structure

kubernetes syntaxkubernetes
Ownership and garbage collection

Working Example

Example Snippetkubernetes
kubectl --kubeconfig ./lab.kubeconfig --context bytemind-lab -n book-lab get pod/catalog-a -o jsonpath='{.metadata.ownerReferences}'
Kubernetes Reference