Merge pull request #15461 from kargakis/relax-exposing-multiport-objects

expose: Enable exposing multiport objects
This commit is contained in:
Jerzy Szczepkowski
2015-10-27 10:25:54 +01:00
8 changed files with 237 additions and 37 deletions

View File

@@ -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