← All notes

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

metadata:
  name: web-7d4b9c-abcde
  ownerReferences:
  - apiVersion: apps/v1
    kind: ReplicaSet
    name: web-7d4b9c
    uid: 0f1e2d3c-1111-2222-3333-444455556666
    controller: true
    blockOwnerDeletion: true
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

Cascading deletion and finalizers

See also

Claims

Sources

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.

License: CC-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.

Cite this

Permanent ID: iil:note:r79nxxec

iinventedlight. 2026. "Kubernetes owner references - how ReplicaSets own Pods and cascading deletion works." iinventedlight Library, iil:note:r79nxxec, version of 2026-11-18. https://iinventedlight.com/library/notes/kubernetes-owners-dependents/. License: CC-BY-4.0.

@misc{iil_note_r79nxxec,
  author = {{iinventedlight}},
  title = {{Kubernetes owner references - how ReplicaSets own Pods and cascading deletion works}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-18},
  url = {https://iinventedlight.com/library/notes/kubernetes-owners-dependents/},
  note = {Permanent ID iil:note:r79nxxec. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/kubernetes-owners-dependents.md.