---
source: https://iinventedlight.com/library/notes/kubernetes-owners-dependents.md
title: "Kubernetes owner references - how ReplicaSets own Pods and cascading deletion works"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "CC-BY-4.0 (Kubernetes docs); CC-BY-4.0 (kubernetes/website (GitHub)); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: Kubernetes docs, Owners and Dependents; kubernetes/website (GitHub), owners-dependents.md (source page). CC-BY-4.0 (https://raw.githubusercontent.com/kubernetes/website/main/LICENSE). Copyright The Kubernetes Authors."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-18
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-18
as_of: 2026-11-18
confidence: medium
untested: "Not reproduced (2026-11-18). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-devops: kubernetes owners and dependents"
tags: [kubernetes, ownerreferences, garbage-collection, deletion, controllers]
client: Librarian
sources:
  - id: S1
    title: "Owners and Dependents"
    publisher: Kubernetes docs
    url: https://kubernetes.io/docs/concepts/overview/working-with-objects/owners-dependents/
    accessed: 2026-11-18
    license: "CC-BY-4.0"
  - id: S2
    title: "owners-dependents.md (source page)"
    publisher: kubernetes/website (GitHub)
    url: https://github.com/kubernetes/website/blob/main/content/en/docs/concepts/overview/working-with-objects/owners-dependents.md
    accessed: 2026-11-18
    license: "CC-BY-4.0"
---
# Kubernetes owner references - how ReplicaSets own Pods and cascading deletion works
**Answer:** Dependent objects have a `metadata.ownerReferences` field that references their owner object, such as the ReplicaSet that owns a set of Pods. Kubernetes sets it automatically for ReplicaSets, DaemonSets, Deployments, Jobs and CronJobs, and the garbage collector uses it to clean up dependents.

## Example

```yaml
metadata:
  name: web-7d4b9c-abcde
  ownerReferences:
  - apiVersion: apps/v1
    kind: ReplicaSet
    name: web-7d4b9c
    uid: 0f1e2d3c-1111-2222-3333-444455556666
    controller: true
    blockOwnerDeletion: true
```

```shell
kubectl get pod web-7d4b9c-abcde -o jsonpath='{.metadata.ownerReferences}'
kubectl get events -A --field-selector=reason=OwnerRefInvalidNamespace
```

## Owner references versus labels

Ownership is different from the labels and selectors mechanism: a Service uses labels to find its `EndpointSlice` objects, and each managed `EndpointSlice` also has an owner reference. This keeps parts of Kubernetes from interfering with objects they don't control.

## Rules

- An owner reference names the owner and its UID, and must point within the namespace of the dependent object.
- Cross-namespace owner references are disallowed by design. A namespaced owner must exist in the same namespace as the dependent, or the reference is treated as absent.
- Cluster-scoped dependents can only specify cluster-scoped owners; an invalid reference produces a warning Event with reason `OwnerRefInvalidNamespace`.
- `ownerReferences.blockOwnerDeletion` controls whether a dependent can block garbage collection from deleting its owner. Controllers set it to `true` automatically.

## Cascading deletion and finalizers

- In foreground deletion, Kubernetes adds the `foreground` finalizer, so dependents with `blockOwnerDeletion=true` are deleted before the owner.
- With an orphan deletion policy, Kubernetes adds the `orphan` finalizer, and the controller ignores dependent resources after it deletes the owner.
- Finalizers such as `kubernetes.io/pv-protection` can keep an object in `Terminating` until it is no longer in use.

## See also

- [kubernetes-finalizers](https://iinventedlight.com/library/notes/kubernetes-finalizers/)
- [kubernetes-deployments](https://iinventedlight.com/library/notes/kubernetes-deployments/)
- [kubernetes-labels-selectors](https://iinventedlight.com/library/notes/kubernetes-labels-selectors/)

## Claims

- id: C1
  claim: Cross-namespace owner references are disallowed by design.
  source: S2
  evidence: "Cross-namespace owner references are disallowed by design."

- id: C2
  claim: Orphan deletion leaves dependents in place.
  source: S2
  evidence: "the controller ignores dependent resources after it deletes the owner object."

- id: C3
  claim: Owner references must be in the same namespace as the dependent.
  source: S1
  evidence: "within the same namespace as the dependent object."

## Sources

- [S1] Owners and Dependents. Kubernetes docs. https://kubernetes.io/docs/concepts/overview/working-with-objects/owners-dependents/ . License: CC-BY-4.0. Accessed 2026-11-18.

- [S2] owners-dependents.md (source page). kubernetes/website (GitHub). https://github.com/kubernetes/website/blob/main/content/en/docs/concepts/overview/working-with-objects/owners-dependents.md . License: CC-BY-4.0. Accessed 2026-11-18.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Kubernetes docs, Owners and Dependents; kubernetes/website (GitHub), owners-dependents.md (source page). CC-BY-4.0 (https://raw.githubusercontent.com/kubernetes/website/main/LICENSE). Copyright The Kubernetes Authors. Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
