Move Garbage Collection topic. (#2874)

* Move Garbage Collection topic.

* Fix included file.
This commit is contained in:
Steve Perry
2017-03-16 13:58:07 -07:00
committed by GitHub
parent 01b2be0b45
commit 4c6b8cc087
3 changed files with 22 additions and 9 deletions
+1 -8
View File
@@ -14,14 +14,6 @@ toc:
- docs/concepts/overview/working-with-objects/annotations.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
section:
- title: Pods
@@ -33,6 +25,7 @@ toc:
section:
- docs/concepts/workloads/controllers/statefulset.md
- docs/concepts/workloads/controllers/petset.md
- docs/concepts/workloads/controllers/garbage-collection.md
- title: Jobs
section:
- docs/concepts/jobs/run-to-completion-finite-workloads.md
@@ -1,5 +1,8 @@
---
title: Garbage Collection
redirect_from:
- "/docs/concepts/abstractions/controllers/garbage-collection/"
- "/docs/concepts/abstractions/controllers/garbage-collection.html"
---
{% 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:
{% 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
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