owner reference
A field in an object's metadata naming the object that owns it, such as the ReplicaSet that owns a pod.
In more detail
When the owner is deleted, the garbage collector deletes the objects it owns, so nothing is left orphaned. Controllers set owner references on everything they create, which also shows you who made an object.
Related terms
- finalizer — A marker on an object that makes Kubernetes wait, after a delete request, until a controller has finished cleanup and removed the marker.
- operator pattern — Packaging operational knowledge as a custom resource plus a controller that reconciles it, so software manages itself on Kubernetes.
- ReplicaSet — The Kubernetes object that keeps a given number of pod copies running; Deployments manage ReplicaSets for you.
Taught in
- Troubleshooting: describe, Events And A First Smoke Test — Kubernetes: Production-Grade Container Orchestration
- A Tiny CRD, Controller And The Operator Pattern — Kubernetes: Production-Grade Container Orchestration