Skip to content

Commit

Permalink
Merge pull request kubernetes#23246 from AdoHe/update_expose_example
Browse files Browse the repository at this point in the history
Auto commit by PR queue bot
(cherry picked from commit b077b68)
  • Loading branch information
k8s-merge-robot authored and eparis committed Mar 24, 2016
1 parent bfd84d4 commit b656313
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions docs/man/man1/kubectl-expose.1
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ kubectl expose \- Take a replication controller, service or pod and expose it as

.SH DESCRIPTION
.PP
Take a replication controller, service, replica set or pod and expose it as a new Kubernetes service.
Take a replication controller, service, replica set, deployment or pod and expose it as a new Kubernetes service.

.PP
Looks up a replication controller, service, replica set or pod by name and uses the selector for that
resource as the selector for a new service on the specified port. A replica set will be exposed as a
service only if it's selector is convertible to a selector that service supports, i.e. when the
Looks up a replication controller, service, replica set, deployment or pod by name and uses the selector
for that resource as the selector for a new service on the specified port. A replica set will be exposed
as a service only if it's selector is convertible to a selector that service supports, i.e. when the
replica set selector contains only the matchLabels component. 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.
Expand Down
10 changes: 5 additions & 5 deletions docs/user-guide/kubectl/kubectl_expose.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ Take a replication controller, service or pod and expose it as a new Kubernetes
### Synopsis


Take a replication controller, service, replica set or pod and expose it as a new Kubernetes service.
Take a replication controller, service, replica set, deployment or pod and expose it as a new Kubernetes service.

Looks up a replication controller, service, replica set or pod by name and uses the selector for that
resource as the selector for a new service on the specified port. A replica set will be exposed as a
service only if it's selector is convertible to a selector that service supports, i.e. when the
Looks up a replication controller, service, replica set, deployment or pod by name and uses the selector
for that resource as the selector for a new service on the specified port. A replica set will be exposed
as a service only if it's selector is convertible to a selector that service supports, i.e. when the
replica set selector contains only the matchLabels component. 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.
Expand Down Expand Up @@ -108,7 +108,7 @@ kubectl expose deployment nginx --port=80 --target-port=8000

* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager

###### Auto generated by spf13/cobra on 18-Mar-2016
###### Auto generated by spf13/cobra on 19-Mar-2016



Expand Down
8 changes: 4 additions & 4 deletions pkg/kubectl/cmd/expose.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ type ExposeOptions struct {
}

const (
expose_long = `Take a replication controller, service, replica set or pod and expose it as a new Kubernetes service.
expose_long = `Take a replication controller, service, replica set, deployment or pod and expose it as a new Kubernetes service.
Looks up a replication controller, service, replica set or pod by name and uses the selector for that
resource as the selector for a new service on the specified port. A replica set will be exposed as a
service only if it's selector is convertible to a selector that service supports, i.e. when the
Looks up a replication controller, service, replica set, deployment or pod by name and uses the selector
for that resource as the selector for a new service on the specified port. A replica set will be exposed
as a service only if it's selector is convertible to a selector that service supports, i.e. when the
replica set selector contains only the matchLabels component. 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.`
Expand Down

0 comments on commit b656313

Please sign in to comment.