error: listen tcp 127.0.0.1:8001: bind: address already in use
It means that; the process is running and using the port. So, I assume that you are here because you are looking for how to close/kill it to be able to re-run the command `kubectl proxy`. Am I right? Following the steps.
- Get the process:
$ ps aux | grep kubectl
camilamacedo 1549 0.0 0.1 5053188 25152 s000 T 3:47pm 0:02.31 kubectl proxy
camilamacedo 4020 0.0 0.0 4287536 884 s000 S+ 4:45pm 0:00.01 grep kubectl
- kill the process:
$ kill -9 1549
[1] Killed: 9 kubectl proxy
- now it will work
$ kubectl proxy
Starting to serve on 127.0.0.1:8001