mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-05 03:03:40 +00:00
Make delete actually stop resources by default.
Refactor for shared code.
This commit is contained in:
@@ -66,4 +66,4 @@ kubectl
|
||||
* [kubectl update](kubectl_update.md) - Update a resource by filename or stdin.
|
||||
* [kubectl version](kubectl_version.md) - Print the client and server version information.
|
||||
|
||||
###### Auto generated by spf13/cobra at 2015-04-27 22:01:46.529528989 +0000 UTC
|
||||
###### Auto generated by spf13/cobra at 2015-04-28 03:34:57.18016485 +0000 UTC
|
||||
|
@@ -50,4 +50,4 @@ kubectl api-versions
|
||||
### SEE ALSO
|
||||
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
|
||||
|
||||
###### Auto generated by spf13/cobra at 2015-04-27 22:01:46.529124749 +0000 UTC
|
||||
###### Auto generated by spf13/cobra at 2015-04-28 03:34:57.179420324 +0000 UTC
|
||||
|
@@ -50,4 +50,4 @@ kubectl cluster-info
|
||||
### SEE ALSO
|
||||
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
|
||||
|
||||
###### Auto generated by spf13/cobra at 2015-04-27 22:01:46.528967691 +0000 UTC
|
||||
###### Auto generated by spf13/cobra at 2015-04-28 03:34:57.179075262 +0000 UTC
|
||||
|
@@ -63,4 +63,4 @@ kubectl config SUBCOMMAND
|
||||
* [kubectl config use-context](kubectl_config_use-context.md) - Sets the current-context in a kubeconfig file
|
||||
* [kubectl config view](kubectl_config_view.md) - displays Merged kubeconfig settings or a specified kubeconfig file.
|
||||
|
||||
###### Auto generated by spf13/cobra at 2015-04-27 22:01:46.528802509 +0000 UTC
|
||||
###### Auto generated by spf13/cobra at 2015-04-28 03:34:57.178743093 +0000 UTC
|
||||
|
@@ -65,4 +65,4 @@ $ kubectl config set-cluster e2e --insecure-skip-tls-verify=true
|
||||
### SEE ALSO
|
||||
* [kubectl config](kubectl_config.md) - config modifies kubeconfig files
|
||||
|
||||
###### Auto generated by spf13/cobra at 2015-04-27 22:01:46.527769365 +0000 UTC
|
||||
###### Auto generated by spf13/cobra at 2015-04-28 03:34:57.176632377 +0000 UTC
|
||||
|
@@ -58,4 +58,4 @@ $ kubectl config set-context gce --user=cluster-admin
|
||||
### SEE ALSO
|
||||
* [kubectl config](kubectl_config.md) - config modifies kubeconfig files
|
||||
|
||||
###### Auto generated by spf13/cobra at 2015-04-27 22:01:46.528131768 +0000 UTC
|
||||
###### Auto generated by spf13/cobra at 2015-04-28 03:34:57.177351504 +0000 UTC
|
||||
|
@@ -78,4 +78,4 @@ $ kubectl set-credentials cluster-admin --client-certificate=~/.kube/admin.crt -
|
||||
### SEE ALSO
|
||||
* [kubectl config](kubectl_config.md) - config modifies kubeconfig files
|
||||
|
||||
###### Auto generated by spf13/cobra at 2015-04-27 22:01:46.527942873 +0000 UTC
|
||||
###### Auto generated by spf13/cobra at 2015-04-28 03:34:57.176997115 +0000 UTC
|
||||
|
@@ -52,4 +52,4 @@ kubectl config set PROPERTY_NAME PROPERTY_VALUE
|
||||
### SEE ALSO
|
||||
* [kubectl config](kubectl_config.md) - config modifies kubeconfig files
|
||||
|
||||
###### Auto generated by spf13/cobra at 2015-04-27 22:01:46.528303344 +0000 UTC
|
||||
###### Auto generated by spf13/cobra at 2015-04-28 03:34:57.177697607 +0000 UTC
|
||||
|
@@ -51,4 +51,4 @@ kubectl config unset PROPERTY_NAME
|
||||
### SEE ALSO
|
||||
* [kubectl config](kubectl_config.md) - config modifies kubeconfig files
|
||||
|
||||
###### Auto generated by spf13/cobra at 2015-04-27 22:01:46.528464868 +0000 UTC
|
||||
###### Auto generated by spf13/cobra at 2015-04-28 03:34:57.178014311 +0000 UTC
|
||||
|
@@ -50,4 +50,4 @@ kubectl config use-context CONTEXT_NAME
|
||||
### SEE ALSO
|
||||
* [kubectl config](kubectl_config.md) - config modifies kubeconfig files
|
||||
|
||||
###### Auto generated by spf13/cobra at 2015-04-27 22:01:46.528626589 +0000 UTC
|
||||
###### Auto generated by spf13/cobra at 2015-04-28 03:34:57.178387488 +0000 UTC
|
||||
|
@@ -73,4 +73,4 @@ $ kubectl config view -o template --template='{{range .users}}{{ if eq .name "e2
|
||||
### SEE ALSO
|
||||
* [kubectl config](kubectl_config.md) - config modifies kubeconfig files
|
||||
|
||||
###### Auto generated by spf13/cobra at 2015-04-27 22:01:46.527582988 +0000 UTC
|
||||
###### Auto generated by spf13/cobra at 2015-04-28 03:34:57.176300117 +0000 UTC
|
||||
|
@@ -63,4 +63,4 @@ $ cat pod.json | kubectl create -f -
|
||||
### SEE ALSO
|
||||
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
|
||||
|
||||
###### Auto generated by spf13/cobra at 2015-04-27 22:01:46.52422236 +0000 UTC
|
||||
###### Auto generated by spf13/cobra at 2015-04-28 03:34:57.169347287 +0000 UTC
|
||||
|
@@ -43,6 +43,7 @@ $ kubectl delete pods --all
|
||||
|
||||
```
|
||||
--all=false: [-all] to select all the specified resources
|
||||
--cascade=true: If true, cascade the delete resources managed by this resource (e.g. Pods created by a ReplicationController). Default true.
|
||||
-f, --filename=[]: Filename, directory, or URL to a file containing the resource to delete
|
||||
-h, --help=false: help for delete
|
||||
-l, --selector="": Selector (label query) to filter on
|
||||
@@ -81,4 +82,4 @@ $ kubectl delete pods --all
|
||||
### SEE ALSO
|
||||
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
|
||||
|
||||
###### Auto generated by spf13/cobra at 2015-04-27 22:01:46.524590507 +0000 UTC
|
||||
###### Auto generated by spf13/cobra at 2015-04-28 03:34:57.170113984 +0000 UTC
|
||||
|
@@ -63,4 +63,4 @@ $ kubectl describe pods/nginx
|
||||
### SEE ALSO
|
||||
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
|
||||
|
||||
###### Auto generated by spf13/cobra at 2015-04-27 22:01:46.524047164 +0000 UTC
|
||||
###### Auto generated by spf13/cobra at 2015-04-28 03:34:57.168905946 +0000 UTC
|
||||
|
@@ -64,4 +64,4 @@ $ kubectl exec -p 123456-7890 -c ruby-container -i -t -- bash -il
|
||||
### SEE ALSO
|
||||
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
|
||||
|
||||
###### Auto generated by spf13/cobra at 2015-04-27 22:01:46.52551618 +0000 UTC
|
||||
###### Auto generated by spf13/cobra at 2015-04-28 03:34:57.173193785 +0000 UTC
|
||||
|
@@ -82,4 +82,4 @@ $ kubectl expose streamer --port=4100 --protocol=udp --service-name=video-stream
|
||||
### SEE ALSO
|
||||
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
|
||||
|
||||
###### Auto generated by spf13/cobra at 2015-04-27 22:01:46.527149074 +0000 UTC
|
||||
###### Auto generated by spf13/cobra at 2015-04-28 03:34:57.175492324 +0000 UTC
|
||||
|
@@ -85,4 +85,4 @@ $ kubectl get rc/web service/frontend pods/web-pod-13je7
|
||||
### SEE ALSO
|
||||
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
|
||||
|
||||
###### Auto generated by spf13/cobra at 2015-04-27 22:01:46.523839103 +0000 UTC
|
||||
###### Auto generated by spf13/cobra at 2015-04-28 03:34:57.168465048 +0000 UTC
|
||||
|
@@ -81,4 +81,4 @@ $ kubectl label pods foo bar-
|
||||
### SEE ALSO
|
||||
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
|
||||
|
||||
###### Auto generated by spf13/cobra at 2015-04-27 22:01:46.527386643 +0000 UTC
|
||||
###### Auto generated by spf13/cobra at 2015-04-28 03:34:57.175924183 +0000 UTC
|
||||
|
@@ -62,4 +62,4 @@ $ kubectl log -f 123456-7890 ruby-container
|
||||
### SEE ALSO
|
||||
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
|
||||
|
||||
###### Auto generated by spf13/cobra at 2015-04-27 22:01:46.524938744 +0000 UTC
|
||||
###### Auto generated by spf13/cobra at 2015-04-28 03:34:57.170843937 +0000 UTC
|
||||
|
@@ -53,4 +53,4 @@ kubectl namespace [namespace]
|
||||
### SEE ALSO
|
||||
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
|
||||
|
||||
###### Auto generated by spf13/cobra at 2015-04-27 22:01:46.524751287 +0000 UTC
|
||||
###### Auto generated by spf13/cobra at 2015-04-28 03:34:57.170473143 +0000 UTC
|
||||
|
@@ -68,4 +68,4 @@ $ kubectl port-forward -p mypod 0:5000
|
||||
### SEE ALSO
|
||||
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
|
||||
|
||||
###### Auto generated by spf13/cobra at 2015-04-27 22:01:46.525691097 +0000 UTC
|
||||
###### Auto generated by spf13/cobra at 2015-04-28 03:34:57.173592919 +0000 UTC
|
||||
|
@@ -65,4 +65,4 @@ $ kubectl proxy --api-prefix=k8s-api
|
||||
### SEE ALSO
|
||||
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
|
||||
|
||||
###### Auto generated by spf13/cobra at 2015-04-27 22:01:46.525864716 +0000 UTC
|
||||
###### Auto generated by spf13/cobra at 2015-04-28 03:34:57.173961813 +0000 UTC
|
||||
|
@@ -68,4 +68,4 @@ $ kubectl resize --current-replicas=2 --replicas=3 replicationcontrollers foo
|
||||
### SEE ALSO
|
||||
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
|
||||
|
||||
###### Auto generated by spf13/cobra at 2015-04-27 22:01:46.52532658 +0000 UTC
|
||||
###### Auto generated by spf13/cobra at 2015-04-28 03:34:57.171613369 +0000 UTC
|
||||
|
@@ -83,4 +83,4 @@ $ kubectl rolling-update frontend --image=image:v2
|
||||
### SEE ALSO
|
||||
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
|
||||
|
||||
###### Auto generated by spf13/cobra at 2015-04-27 22:44:36.84341428 +0000 UTC
|
||||
###### Auto generated by spf13/cobra at 2015-04-28 21:28:37.951011185 +0000 UTC
|
||||
|
@@ -78,4 +78,4 @@ $ kubectl run-container nginx --image=nginx --overrides='{ "apiVersion": "v1beta
|
||||
### SEE ALSO
|
||||
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
|
||||
|
||||
###### Auto generated by spf13/cobra at 2015-04-27 22:01:46.526080215 +0000 UTC
|
||||
###### Auto generated by spf13/cobra at 2015-04-28 03:34:57.174507457 +0000 UTC
|
||||
|
@@ -72,4 +72,4 @@ $ kubectl stop -f path/to/resources
|
||||
### SEE ALSO
|
||||
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
|
||||
|
||||
###### Auto generated by spf13/cobra at 2015-04-27 22:01:46.526923863 +0000 UTC
|
||||
###### Auto generated by spf13/cobra at 2015-04-28 03:34:57.174999749 +0000 UTC
|
||||
|
@@ -67,4 +67,4 @@ $ kubectl update pods my-pod --patch='{ "apiVersion": "v1beta1", "desiredState":
|
||||
### SEE ALSO
|
||||
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
|
||||
|
||||
###### Auto generated by spf13/cobra at 2015-04-27 22:01:46.52440746 +0000 UTC
|
||||
###### Auto generated by spf13/cobra at 2015-04-28 03:34:57.16972972 +0000 UTC
|
||||
|
@@ -51,4 +51,4 @@ kubectl version
|
||||
### SEE ALSO
|
||||
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
|
||||
|
||||
###### Auto generated by spf13/cobra at 2015-04-27 22:01:46.529297188 +0000 UTC
|
||||
###### Auto generated by spf13/cobra at 2015-04-28 03:34:57.179736961 +0000 UTC
|
||||
|
@@ -33,6 +33,10 @@ will be lost along with the rest of the resource.
|
||||
\fB\-\-all\fP=false
|
||||
[\-all] to select all the specified resources
|
||||
|
||||
.PP
|
||||
\fB\-\-cascade\fP=true
|
||||
If true, cascade the delete resources managed by this resource (e.g. Pods created by a ReplicationController). Default true.
|
||||
|
||||
.PP
|
||||
\fB\-f\fP, \fB\-\-filename\fP=[]
|
||||
Filename, directory, or URL to a file containing the resource to delete
|
||||
|
Reference in New Issue
Block a user