KubernetesCommand
Forward a Port to a Pod
Type this command
kubectl port-forward my-pod 5000:6000Listens on local port 5000 and forwards to port 6000 on the pod.
The Kubernetes command to forward a port to a pod is kubectl port-forward my-pod 5000:6000.
kubectl port-forward my-pod 5000:6000kubectl port-forward my-pod 5000:6000Listens on local port 5000 and forwards to port 6000 on the pod.
Run kubectl port-forward my-pod 5000:6000.
Run kubectl port-forward my-pod 5000:6000.
Type it in the terminal or command-line interface used by Kubernetes.
Yes. The command text is the same on both platforms when the tool is installed.