Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
b077b685
Commit
b077b685
authored
Mar 19, 2016
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #23246 from AdoHe/update_expose_example
Auto commit by PR queue bot
parents
5e5e4b2b
57534eae
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
13 deletions
+13
-13
kubectl-expose.1
docs/man/man1/kubectl-expose.1
+4
-4
kubectl_expose.md
docs/user-guide/kubectl/kubectl_expose.md
+5
-5
expose.go
pkg/kubectl/cmd/expose.go
+4
-4
No files found.
docs/man/man1/kubectl-expose.1
View file @
b077b685
...
...
@@ -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.
...
...
docs/user-guide/kubectl/kubectl_expose.md
View file @
b077b685
...
...
@@ -39,11 +39,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.
...
...
@@ -137,7 +137,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 1
8
-Mar-2016
###### Auto generated by spf13/cobra on 1
9
-Mar-2016
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
[

]()
...
...
pkg/kubectl/cmd/expose.go
View file @
b077b685
...
...
@@ -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.`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment