mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-13 11:25:19 +00:00
Fix md generation for kubectl docs
Display usage string, not long help, as code, remove angle brackets from output (.md interprets as tags and hides).
This commit is contained in:
@@ -133,17 +133,18 @@ Forward 1 or more local ports to a pod.
|
||||
.RS
|
||||
|
||||
.nf
|
||||
|
||||
// listens on ports 5000 and 6000 locally, forwarding data to/from ports 5000 and 6000 in the pod
|
||||
$ kubectl port\-forward \-p mypod 5000 6000
|
||||
<listens on ports 5000 and 6000 locally, forwarding data to/from ports 5000 and 6000 in the pod>
|
||||
|
||||
// listens on port 8888 locally, forwarding to 5000 in the pod
|
||||
$ kubectl port\-forward \-p mypod 8888:5000
|
||||
<listens on port 8888 locally, forwarding to 5000 in the pod>
|
||||
|
||||
// listens on a random port locally, forwarding to 5000 in the pod
|
||||
$ kubectl port\-forward \-p mypod :5000
|
||||
<listens on a random port locally, forwarding to 5000 in the pod>
|
||||
|
||||
// listens on a random port locally, forwarding to 5000 in the pod
|
||||
$ kubectl port\-forward \-p mypod 0:5000
|
||||
<listens on a random port locally, forwarding to 5000 in the pod>
|
||||
|
||||
.fi
|
||||
.RE
|
||||
|
||||
Reference in New Issue
Block a user