Move Garbage Collection topic. (#2874)
* Move Garbage Collection topic. * Fix included file.
This commit is contained in:
+1
-8
@@ -14,14 +14,6 @@ toc:
|
|||||||
- docs/concepts/overview/working-with-objects/annotations.md
|
- docs/concepts/overview/working-with-objects/annotations.md
|
||||||
- docs/concepts/overview/kubernetes-api.md
|
- docs/concepts/overview/kubernetes-api.md
|
||||||
|
|
||||||
- title: Kubernetes Objects
|
|
||||||
section:
|
|
||||||
- title: Pods
|
|
||||||
section:
|
|
||||||
- title: Controllers
|
|
||||||
section:
|
|
||||||
- docs/concepts/abstractions/controllers/garbage-collection.md
|
|
||||||
|
|
||||||
- title: Workloads
|
- title: Workloads
|
||||||
section:
|
section:
|
||||||
- title: Pods
|
- title: Pods
|
||||||
@@ -33,6 +25,7 @@ toc:
|
|||||||
section:
|
section:
|
||||||
- docs/concepts/workloads/controllers/statefulset.md
|
- docs/concepts/workloads/controllers/statefulset.md
|
||||||
- docs/concepts/workloads/controllers/petset.md
|
- docs/concepts/workloads/controllers/petset.md
|
||||||
|
- docs/concepts/workloads/controllers/garbage-collection.md
|
||||||
- title: Jobs
|
- title: Jobs
|
||||||
section:
|
section:
|
||||||
- docs/concepts/jobs/run-to-completion-finite-workloads.md
|
- docs/concepts/jobs/run-to-completion-finite-workloads.md
|
||||||
|
|||||||
+4
-1
@@ -1,5 +1,8 @@
|
|||||||
---
|
---
|
||||||
title: Garbage Collection
|
title: Garbage Collection
|
||||||
|
redirect_from:
|
||||||
|
- "/docs/concepts/abstractions/controllers/garbage-collection/"
|
||||||
|
- "/docs/concepts/abstractions/controllers/garbage-collection.html"
|
||||||
---
|
---
|
||||||
|
|
||||||
{% capture overview %}
|
{% capture overview %}
|
||||||
@@ -30,7 +33,7 @@ relationships between owners and dependents by manually setting the
|
|||||||
|
|
||||||
Here's a configuration file for a ReplicaSet that has three Pods:
|
Here's a configuration file for a ReplicaSet that has three Pods:
|
||||||
|
|
||||||
{% include code.html language="yaml" file="my-repset.yaml" ghlink="/docs/concepts/abstractions/controllers/my-repset.yaml" %}
|
{% include code.html language="yaml" file="my-repset.yaml" ghlink="/docs/concepts/workloads/controllers/my-repset.yaml" %}
|
||||||
|
|
||||||
If you create the ReplicaSet and then view the Pod metadata, you can see
|
If you create the ReplicaSet and then view the Pod metadata, you can see
|
||||||
OwnerReferences field:
|
OwnerReferences field:
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
apiVersion: extensions/v1beta1
|
||||||
|
kind: ReplicaSet
|
||||||
|
metadata:
|
||||||
|
name: my-repset
|
||||||
|
spec:
|
||||||
|
replicas: 3
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
pod-is-for: garbage-collection-example
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
pod-is-for: garbage-collection-example
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: nginx
|
||||||
|
image: nginx
|
||||||
Reference in New Issue
Block a user