Error for kubectl port forwarding
kubectl port-forward, you get the following error:
Click to copy
Unable to listen on port ... bind: address already in use
Port forwarding failed because the local port is already reserved by another process running on your machine.
There are several ways to fix this:
- Kill the other process listening on the same port.
- Choose another (unused) local port.
kubectlchoose a random unused local port for you (see the Kubernetes port forwarding documentation).