Refdocs for 1.2 import
This commit is contained in:
@@ -1,7 +1,3 @@
|
||||
---
|
||||
layout: docwithnav
|
||||
title: "kubectl port-forward"
|
||||
---
|
||||
<!-- BEGIN MUNGE: UNVERSIONED_WARNING -->
|
||||
|
||||
|
||||
@@ -17,46 +13,39 @@ Forward one or more local ports to a pod.
|
||||
Forward one or more local ports to a pod.
|
||||
|
||||
```
|
||||
{% raw %}
|
||||
kubectl port-forward POD [LOCAL_PORT:]REMOTE_PORT [...[LOCAL_PORT_N:]REMOTE_PORT_N]
|
||||
{% endraw %}
|
||||
```
|
||||
|
||||
### Examples
|
||||
|
||||
```
|
||||
{% raw %}
|
||||
|
||||
# Listen on ports 5000 and 6000 locally, forwarding data to/from ports 5000 and 6000 in the pod
|
||||
$ kubectl port-forward mypod 5000 6000
|
||||
kubectl port-forward mypod 5000 6000
|
||||
|
||||
# Listen on port 8888 locally, forwarding to 5000 in the pod
|
||||
$ kubectl port-forward mypod 8888:5000
|
||||
kubectl port-forward mypod 8888:5000
|
||||
|
||||
# Listen on a random port locally, forwarding to 5000 in the pod
|
||||
$ kubectl port-forward mypod :5000
|
||||
kubectl port-forward mypod :5000
|
||||
|
||||
# Listen on a random port locally, forwarding to 5000 in the pod
|
||||
$ kubectl port-forward mypod 0:5000
|
||||
{% endraw %}
|
||||
kubectl port-forward mypod 0:5000
|
||||
```
|
||||
|
||||
### Options
|
||||
|
||||
```
|
||||
{% raw %}
|
||||
-p, --pod="": Pod name
|
||||
{% endraw %}
|
||||
```
|
||||
|
||||
### Options inherited from parent commands
|
||||
|
||||
```
|
||||
{% raw %}
|
||||
--alsologtostderr[=false]: log to standard error as well as files
|
||||
--api-version="": The API version to use when talking to the server
|
||||
--certificate-authority="": Path to a cert. file for the certificate authority.
|
||||
--client-certificate="": Path to a client key file for TLS.
|
||||
--client-certificate="": Path to a client certificate file for TLS.
|
||||
--client-key="": Path to a client key file for TLS.
|
||||
--cluster="": The name of the kubeconfig cluster to use
|
||||
--context="": The name of the kubeconfig context to use
|
||||
@@ -76,14 +65,13 @@ $ kubectl port-forward mypod 0:5000
|
||||
--username="": Username for basic authentication to the API server.
|
||||
--v=0: log level for V logs
|
||||
--vmodule=: comma-separated list of pattern=N settings for file-filtered logging
|
||||
{% endraw %}
|
||||
```
|
||||
|
||||
### SEE ALSO
|
||||
|
||||
* [kubectl](kubectl.html) - kubectl controls the Kubernetes cluster manager
|
||||
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
|
||||
|
||||
###### Auto generated by spf13/cobra at 2015-09-10 18:53:03.156433376 +0000 UTC
|
||||
###### Auto generated by spf13/cobra on 29-Feb-2016
|
||||
|
||||
|
||||
|
||||
@@ -95,4 +83,3 @@ $ kubectl port-forward mypod 0:5000
|
||||
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
|
||||
[]()
|
||||
<!-- END MUNGE: GENERATED_ANALYTICS -->
|
||||
|
||||
|
||||
Reference in New Issue
Block a user