From a7d4d76c50d4b3abf87b06d10bf25e35040e8400 Mon Sep 17 00:00:00 2001 From: qiaolei Date: Sat, 12 Sep 2015 11:15:28 +0800 Subject: [PATCH] Change kubectl 'stop' to 'delete' and made some improvements 1. Change deprecated kubectl `stop` to `delete` and the corresponding link 2. Improve the description of deleting a replication controller, since I think it is a little misleading --- docs/user-guide/replication-controller.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/user-guide/replication-controller.md b/docs/user-guide/replication-controller.md index d0d968104d8..8a454302ec2 100644 --- a/docs/user-guide/replication-controller.md +++ b/docs/user-guide/replication-controller.md @@ -79,7 +79,7 @@ Note that replication controllers may themselves have labels and would generally Pods may be removed from a replication controller's target set by changing their labels. This technique may be used to remove pods from service for debugging, data recovery, etc. Pods that are removed in this way will be replaced automatically (assuming that the number of replicas is not also changed). -Similarly, deleting a replication controller does not affect the pods it created. Its `replicas` field must first be set to 0 in order to delete the pods controlled. (Note that the client tool, kubectl, provides a single operation, [stop](kubectl/kubectl_stop.md) to delete both the replication controller and the pods it controls. However, there is no such operation in the API at the moment) +Similarly, deleting a replication controller using the API does not affect the pods it created. Its `replicas` field must first be set to `0` in order to delete the pods controlled. (Note that the client tool, `kubectl`, provides a single operation, [delete](kubectl/kubectl_delete.md) to delete both the replication controller and the pods it controls. If you want to leave the pods running when deleting a replication controller, specify `--cascade=false`. However, there is no such operation in the API at the moment) ## Responsibilities of the replication controller