mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 23:47:50 +00:00
Update kubectl help for 1.2 resources
This commit is contained in:
@@ -34,19 +34,19 @@ Documentation for other releases can be found at
|
||||
|
||||
## kubectl expose
|
||||
|
||||
Take a replication controller, service or pod and expose it as a new Kubernetes Service
|
||||
Take a replication controller, service, or pod and expose it as a new Kubernetes Service
|
||||
|
||||
### Synopsis
|
||||
|
||||
|
||||
Take a replication controller, service, replica set, deployment or pod and expose it as a new Kubernetes service.
|
||||
Take a deployment, service, replica set, replication controller, or pod and expose it as a new Kubernetes service.
|
||||
|
||||
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.
|
||||
Looks up a deployment, service, replica set, replication controller or pod by name and uses the selector
|
||||
for that resource as the selector for a new service on the specified port. A deployment or replica set
|
||||
will be exposed as a service only if its selector is convertible to a selector that service supports,
|
||||
i.e. when the 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.
|
||||
|
||||
```
|
||||
kubectl expose (-f FILENAME | TYPE NAME) [--port=port] [--protocol=TCP|UDP] [--target-port=number-or-name] [--name=name] [--external-ip=external-ip-of-service] [--type=type]
|
||||
@@ -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 19-Mar-2016
|
||||
###### Auto generated by spf13/cobra on 22-Mar-2016
|
||||
|
||||
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
|
||||
[]()
|
||||
|
||||
Reference in New Issue
Block a user