mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-08 12:41:58 +00:00
Added support for labels to "kubectl stop".
Added support for labels and --all to "kubectl stop". Fixes #5178.
This commit is contained in:
@@ -21,10 +21,18 @@ If the resource is resizable it will be resized to 0 before deletion.
|
||||
|
||||
|
||||
.SH OPTIONS
|
||||
.PP
|
||||
\fB\-\-all\fP=false
|
||||
[\-all] to select all the specified resources
|
||||
|
||||
.PP
|
||||
\fB\-f\fP, \fB\-\-filename\fP=[]
|
||||
Filename, directory, or URL to file of resource(s) to be stopped
|
||||
|
||||
.PP
|
||||
\fB\-l\fP, \fB\-\-selector\fP=""
|
||||
Selector (label query) to filter on
|
||||
|
||||
|
||||
.SH OPTIONS INHERITED FROM PARENT COMMANDS
|
||||
.PP
|
||||
@@ -140,6 +148,9 @@ If the resource is resizable it will be resized to 0 before deletion.
|
||||
// Shut down foo.
|
||||
$ kubectl stop replicationcontroller foo
|
||||
|
||||
// Stop pods and services with label name=myLabel.
|
||||
$ kubectl stop pods,services \-l name=myLabel
|
||||
|
||||
// Shut down the service defined in service.json
|
||||
$ kubectl stop \-f service.json
|
||||
|
||||
|
Reference in New Issue
Block a user