- Expose a workload
- Expose and secure a workload
- Cannot connect to a service exposed by an APIRule
- External DNS management
Error for kubectl port forwarding
Symptom
When executing kubectl port-forward
, you get the following error:
Click to copy
Unable to listen on port ... bind: address already in use
Cause
Port forwarding failed because the local port is already reserved by another process running on your machine.
Remedy
There are several ways to fix this:
- Kill the other process listening on the same port.
- Choose another (unused) local port.
- Let
kubectl
choose a random unused local port for you (see the Kubernetes port forwarding documentation).