mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
update commented examples just remove $
This commit is contained in:
@@ -33,16 +33,16 @@ import (
|
||||
const (
|
||||
portforward_example = `
|
||||
# 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`
|
||||
kubectl port-forward mypod 0:5000`
|
||||
)
|
||||
|
||||
func NewCmdPortForward(f *cmdutil.Factory) *cobra.Command {
|
||||
|
||||
Reference in New Issue
Block a user