Allow delete multiple resources with the same name

This commit is contained in:
feihujiang
2015-08-19 16:33:02 +08:00
parent ebe50ea692
commit 943c57ff4e
6 changed files with 94 additions and 1 deletions

View File

@@ -61,6 +61,9 @@ $ kubectl delete -f ./pod.json
# Delete a pod based on the type and name in the JSON passed into stdin.
$ cat pod.json | kubectl delete -f -
# Delete pods and services with same names "baz" and "foo"
$ kubectl delete pod,service baz foo
# Delete pods and services with label name=myLabel.
$ kubectl delete pods,services -l name=myLabel
@@ -118,7 +121,7 @@ $ kubectl delete pods --all
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
###### Auto generated by spf13/cobra at 2015-08-20 22:01:12.476048394 +0000 UTC
###### Auto generated by spf13/cobra at 2015-08-21 06:18:47.444397685 +0000 UTC
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/docs/user-guide/kubectl/kubectl_delete.md?pixel)]()