Received an error when do the port forward usin the command below in Minikube,
$ kubectl port-forward --address 0.0.0.0 svc/linuxfaq-webapp 30080:80
[1] 1767868 $ Unable to listen on port 30080: Listeners failed to create with the following
errors: [unable to create listener: Error listen tcp4 0.0.0.0:30080: bind: address already in use]
error: unable to listen on any of the requested ports: [{30080 80}]
Find out whether the port 30080 is listening in your machine already using the lsof command below,
$ lsof -i 30080
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME kubectl
329218 ec2-user 8u IPv4 4471952 0t0 TCP *:30080 (LISTEN)
Kill the particular processor using the command KILL, then run the command again. It should be working fine.
$ kill -9 329218
Comments (0)