Merge pull request #31631 from tengqm/fix-gc-cascade
Fix the cascading deletion page
This commit is contained in:
commit
1f4ca9f802
|
|
@ -5,7 +5,8 @@ content_type: task
|
||||||
|
|
||||||
<!--overview-->
|
<!--overview-->
|
||||||
|
|
||||||
This page shows you how to specify the type of [cascading deletion](/docs/concepts/workloads/controllers/garbage-collection/#cascading-deletion)
|
This page shows you how to specify the type of
|
||||||
|
[cascading deletion](/docs/concepts/architecture/garbage-collection/#cascading-deletion)
|
||||||
to use in your cluster during {{<glossary_tooltip text="garbage collection" term_id="garbage-collection">}}.
|
to use in your cluster during {{<glossary_tooltip text="garbage collection" term_id="garbage-collection">}}.
|
||||||
|
|
||||||
## {{% heading "prerequisites" %}}
|
## {{% heading "prerequisites" %}}
|
||||||
|
|
@ -26,7 +27,7 @@ kubectl get pods -l app=nginx --output=yaml
|
||||||
|
|
||||||
The output has an `ownerReferences` field similar to this:
|
The output has an `ownerReferences` field similar to this:
|
||||||
|
|
||||||
```
|
```yaml
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
...
|
...
|
||||||
ownerReferences:
|
ownerReferences:
|
||||||
|
|
@ -41,7 +42,7 @@ apiVersion: v1
|
||||||
|
|
||||||
## Use foreground cascading deletion {#use-foreground-cascading-deletion}
|
## Use foreground cascading deletion {#use-foreground-cascading-deletion}
|
||||||
|
|
||||||
By default, Kubernetes uses [background cascading deletion](/docs/concepts/workloads/controllers/garbage-collection/#background-deletion)
|
By default, Kubernetes uses [background cascading deletion](/docs/concepts/architecture/garbage-collection/#background-deletion)
|
||||||
to delete dependents of an object. You can switch to foreground cascading deletion
|
to delete dependents of an object. You can switch to foreground cascading deletion
|
||||||
using either `kubectl` or the Kubernetes API, depending on the Kubernetes
|
using either `kubectl` or the Kubernetes API, depending on the Kubernetes
|
||||||
version your cluster runs. {{<version-check>}}
|
version your cluster runs. {{<version-check>}}
|
||||||
|
|
@ -349,4 +350,4 @@ kubectl get pods -l app=nginx
|
||||||
|
|
||||||
* Learn about [owners and dependents](/docs/concepts/overview/working-with-objects/owners-dependents/) in Kubernetes.
|
* Learn about [owners and dependents](/docs/concepts/overview/working-with-objects/owners-dependents/) in Kubernetes.
|
||||||
* Learn about Kubernetes [finalizers](/docs/concepts/overview/working-with-objects/finalizers/).
|
* Learn about Kubernetes [finalizers](/docs/concepts/overview/working-with-objects/finalizers/).
|
||||||
* Learn about [garbage collection](/docs/concepts/workloads/controllers/garbage-collection/).
|
* Learn about [garbage collection](/docs/concepts/architecture/garbage-collection/).
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue