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
0a8b136e
Commit
0a8b136e
authored
Apr 30, 2015
by
Rohit Jnagal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typo in 'kubectl expose' examples.
parent
6f5e0811
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
kubectl.md
docs/kubectl.md
+1
-1
kubectl_expose.md
docs/kubectl_expose.md
+3
-3
kubectl-expose.1
docs/man/man1/kubectl-expose.1
+2
-2
expose.go
pkg/kubectl/cmd/expose.go
+2
-2
No files found.
docs/kubectl.md
View file @
0a8b136e
...
@@ -66,4 +66,4 @@ kubectl
...
@@ -66,4 +66,4 @@ kubectl
*
[
kubectl update
](
kubectl_update.md
)
- Update a resource by filename or stdin.
*
[
kubectl update
](
kubectl_update.md
)
- Update a resource by filename or stdin.
*
[
kubectl version
](
kubectl_version.md
)
- Print the client and server version information.
*
[
kubectl version
](
kubectl_version.md
)
- Print the client and server version information.
###### Auto generated by spf13/cobra at 2015-04-
28 03:34:57.18016485
+0000 UTC
###### Auto generated by spf13/cobra at 2015-04-
30 06:01:21.516683017
+0000 UTC
docs/kubectl_expose.md
View file @
0a8b136e
...
@@ -18,13 +18,13 @@ kubectl expose RESOURCE NAME --port=port [--protocol=TCP|UDP] [--target-port=num
...
@@ -18,13 +18,13 @@ kubectl expose RESOURCE NAME --port=port [--protocol=TCP|UDP] [--target-port=num
```
```
// Creates a service for a replicated nginx, which serves on port 80 and connects to the containers on port 8000.
// Creates a service for a replicated nginx, which serves on port 80 and connects to the containers on port 8000.
$ kubectl expose nginx --port=80 --target-port=8000
$ kubectl expose
rc
nginx --port=80 --target-port=8000
// Creates a second service based on the above service, exposing the container port 8443 as port 443 with the name "nginx-https"
// Creates a second service based on the above service, exposing the container port 8443 as port 443 with the name "nginx-https"
$ kubectl expose service nginx --port=443 --target-port=8443 --service-name=nginx-https
$ kubectl expose service nginx --port=443 --target-port=8443 --service-name=nginx-https
// Create a service for a replicated streaming application on port 4100 balancing UDP traffic and named 'video-stream'.
// Create a service for a replicated streaming application on port 4100 balancing UDP traffic and named 'video-stream'.
$ kubectl expose streamer --port=4100 --protocol=udp --service-name=video-stream
$ kubectl expose
rc
streamer --port=4100 --protocol=udp --service-name=video-stream
```
```
### Options
### Options
...
@@ -82,4 +82,4 @@ $ kubectl expose streamer --port=4100 --protocol=udp --service-name=video-stream
...
@@ -82,4 +82,4 @@ $ kubectl expose streamer --port=4100 --protocol=udp --service-name=video-stream
### SEE ALSO
### SEE ALSO
*
[
kubectl
](
kubectl.md
)
- kubectl controls the Kubernetes cluster manager
*
[
kubectl
](
kubectl.md
)
- kubectl controls the Kubernetes cluster manager
###### Auto generated by spf13/cobra at 2015-04-
29 15:25:11.0343610
8 +0000 UTC
###### Auto generated by spf13/cobra at 2015-04-
30 06:01:21.5128622
8 +0000 UTC
docs/man/man1/kubectl-expose.1
View file @
0a8b136e
...
@@ -199,13 +199,13 @@ selector for a new Service on the specified port.
...
@@ -199,13 +199,13 @@ selector for a new Service on the specified port.
.nf
.nf
// Creates a service for a replicated nginx, which serves on port 80 and connects to the containers on port 8000.
// Creates a service for a replicated nginx, which serves on port 80 and connects to the containers on port 8000.
$ kubectl expose nginx \-\-port=80 \-\-target\-port=8000
$ kubectl expose
rc
nginx \-\-port=80 \-\-target\-port=8000
// Creates a second service based on the above service, exposing the container port 8443 as port 443 with the name "nginx\-https"
// Creates a second service based on the above service, exposing the container port 8443 as port 443 with the name "nginx\-https"
$ kubectl expose service nginx \-\-port=443 \-\-target\-port=8443 \-\-service\-name=nginx\-https
$ kubectl expose service nginx \-\-port=443 \-\-target\-port=8443 \-\-service\-name=nginx\-https
// Create a service for a replicated streaming application on port 4100 balancing UDP traffic and named 'video\-stream'.
// Create a service for a replicated streaming application on port 4100 balancing UDP traffic and named 'video\-stream'.
$ kubectl expose streamer \-\-port=4100 \-\-protocol=udp \-\-service\-name=video\-stream
$ kubectl expose
rc
streamer \-\-port=4100 \-\-protocol=udp \-\-service\-name=video\-stream
.fi
.fi
.RE
.RE
...
...
pkg/kubectl/cmd/expose.go
View file @
0a8b136e
...
@@ -33,13 +33,13 @@ Looks up a replication controller or service by name and uses the selector for t
...
@@ -33,13 +33,13 @@ Looks up a replication controller or service by name and uses the selector for t
selector for a new Service on the specified port.`
selector for a new Service on the specified port.`
expose_example
=
`// Creates a service for a replicated nginx, which serves on port 80 and connects to the containers on port 8000.
expose_example
=
`// Creates a service for a replicated nginx, which serves on port 80 and connects to the containers on port 8000.
$ kubectl expose nginx --port=80 --target-port=8000
$ kubectl expose
rc
nginx --port=80 --target-port=8000
// Creates a second service based on the above service, exposing the container port 8443 as port 443 with the name "nginx-https"
// Creates a second service based on the above service, exposing the container port 8443 as port 443 with the name "nginx-https"
$ kubectl expose service nginx --port=443 --target-port=8443 --service-name=nginx-https
$ kubectl expose service nginx --port=443 --target-port=8443 --service-name=nginx-https
// Create a service for a replicated streaming application on port 4100 balancing UDP traffic and named 'video-stream'.
// Create a service for a replicated streaming application on port 4100 balancing UDP traffic and named 'video-stream'.
$ kubectl expose streamer --port=4100 --protocol=udp --service-name=video-stream`
$ kubectl expose
rc
streamer --port=4100 --protocol=udp --service-name=video-stream`
)
)
func
NewCmdExposeService
(
f
*
cmdutil
.
Factory
,
out
io
.
Writer
)
*
cobra
.
Command
{
func
NewCmdExposeService
(
f
*
cmdutil
.
Factory
,
out
io
.
Writer
)
*
cobra
.
Command
{
...
...
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