Merge pull request #5522 from fabioy/expose-label.fix
Add "--labels" option to the "expose" kubectl command.
This commit is contained in:
@@ -31,6 +31,7 @@ $ kubectl expose streamer --port=4100 --protocol=udp --service-name=video-stream
|
||||
--create-external-load-balancer=false: If true, create an external load balancer for this service. Implementation is cloud provider dependent. Default is 'false'.
|
||||
--dry-run=false: If true, only print the object that would be sent, without creating it.
|
||||
--generator="service/v1": The name of the API generator to use. Default is 'service/v1'.
|
||||
-l, --labels="": Labels to apply to the service created by this call.
|
||||
--no-headers=false: When using the default output, don't print headers.
|
||||
-o, --output="": Output format. One of: json|yaml|template|templatefile.
|
||||
--output-version="": Output the formatted object with the given version (default api-version).
|
||||
|
@@ -37,6 +37,10 @@ as the selector for a new Service on the specified port.
|
||||
\fB\-\-generator\fP="service/v1"
|
||||
The name of the API generator to use. Default is 'service/v1'.
|
||||
|
||||
.PP
|
||||
\fB\-l\fP, \fB\-\-labels\fP=""
|
||||
Labels to apply to the service created by this call.
|
||||
|
||||
.PP
|
||||
\fB\-\-no\-headers\fP=false
|
||||
When using the default output, don't print headers.
|
||||
|
Reference in New Issue
Block a user