mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-07 20:21:20 +00:00
expose: Enable exposing multiport objects
The generated service will inherit all the ports from the exposed object.
This commit is contained in:
@@ -13,12 +13,13 @@ kubectl expose \- Take a replication controller, service or pod and expose it as
|
||||
|
||||
.SH DESCRIPTION
|
||||
.PP
|
||||
Take a replication controller, service or pod and expose it as a new Kubernetes Service.
|
||||
Take a replication controller, service, or pod and expose it as a new Kubernetes service.
|
||||
|
||||
.PP
|
||||
Looks up a replication controller, service or pod by name and uses the selector for that resource as the
|
||||
selector for a new Service on the specified port. If no labels are specified, the new service will
|
||||
re\-use the labels from the resource it exposes.
|
||||
Looks up a replication controller, service, or pod by name and uses the selector for that resource as the
|
||||
selector for a new service on the specified port. Note that if no port is specified via \-\-port and the
|
||||
exposed resource has multiple ports, all will be re\-used by the new service. Also if no labels are specified,
|
||||
the new service will re\-use the labels from the resource it exposes.
|
||||
|
||||
|
||||
.SH OPTIONS
|
||||
|
Reference in New Issue
Block a user