Skip to content

Commit

Permalink
Fix typo in 'kubectl expose' examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
rjnagal committed Apr 30, 2015
1 parent 6f5e081 commit 0a8b136
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/kubectl.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ kubectl
* [kubectl update](kubectl_update.md) - Update a resource by filename or stdin.
* [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
6 changes: 3 additions & 3 deletions docs/kubectl_expose.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
$ 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"
$ 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'.
$ kubectl expose streamer --port=4100 --protocol=udp --service-name=video-stream
$ kubectl expose rc streamer --port=4100 --protocol=udp --service-name=video-stream
```

### Options
Expand Down Expand Up @@ -82,4 +82,4 @@ $ kubectl expose streamer --port=4100 --protocol=udp --service-name=video-stream
### SEE ALSO
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager

###### Auto generated by spf13/cobra at 2015-04-29 15:25:11.03436108 +0000 UTC
###### Auto generated by spf13/cobra at 2015-04-30 06:01:21.51286228 +0000 UTC
4 changes: 2 additions & 2 deletions docs/man/man1/kubectl-expose.1
Original file line number Diff line number Diff line change
Expand Up @@ -199,13 +199,13 @@ selector for a new Service on the specified port.

.nf
// 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"
$ 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'.
$ kubectl expose streamer \-\-port=4100 \-\-protocol=udp \-\-service\-name=video\-stream
$ kubectl expose rc streamer \-\-port=4100 \-\-protocol=udp \-\-service\-name=video\-stream

.fi
.RE
Expand Down
4 changes: 2 additions & 2 deletions pkg/kubectl/cmd/expose.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.`

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"
$ 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'.
$ 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 {
Expand Down

0 comments on commit 0a8b136

Please sign in to comment.