mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #23246 from AdoHe/update_expose_example
Auto commit by PR queue bot
This commit is contained in:
commit
b077b685d9
@ -13,12 +13,12 @@ kubectl expose \- Take a replication controller, service or pod and expose it as
|
|||||||
|
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
.PP
|
.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
|
.PP
|
||||||
Looks up a replication controller, service, replica set or pod by name and uses the selector for that
|
Looks up a replication controller, service, replica set, deployment or pod by name and uses the selector
|
||||||
resource as the selector for a new service on the specified port. A replica set will be exposed as a
|
for that resource as the selector for a new service on the specified port. A replica set will be exposed
|
||||||
service only if it's selector is convertible to a selector that service supports, i.e. when the
|
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
|
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
|
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.
|
if no labels are specified, the new service will re\-use the labels from the resource it exposes.
|
||||||
|
@ -39,11 +39,11 @@ Take a replication controller, service or pod and expose it as a new Kubernetes
|
|||||||
### Synopsis
|
### 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
|
Looks up a replication controller, service, replica set, deployment or pod by name and uses the selector
|
||||||
resource as the selector for a new service on the specified port. A replica set will be exposed as a
|
for that resource as the selector for a new service on the specified port. A replica set will be exposed
|
||||||
service only if it's selector is convertible to a selector that service supports, i.e. when the
|
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
|
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
|
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.
|
if no labels are specified, the new service will re-use the labels from the resource it exposes.
|
||||||
@ -137,7 +137,7 @@ kubectl expose deployment nginx --port=80 --target-port=8000
|
|||||||
|
|
||||||
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
|
* [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
|
||||||
|
|
||||||
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
|
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
|
||||||
[]()
|
[]()
|
||||||
|
@ -37,11 +37,11 @@ type ExposeOptions struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const (
|
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
|
Looks up a replication controller, service, replica set, deployment or pod by name and uses the selector
|
||||||
resource as the selector for a new service on the specified port. A replica set will be exposed as a
|
for that resource as the selector for a new service on the specified port. A replica set will be exposed
|
||||||
service only if it's selector is convertible to a selector that service supports, i.e. when the
|
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
|
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
|
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.`
|
if no labels are specified, the new service will re-use the labels from the resource it exposes.`
|
||||||
|
Loading…
Reference in New Issue
Block a user