Contents

Kubernetes Delete Binary of Node

Check Running Process by Port

1
netstat -plnt | grep 6666
1
tcp6       0      0 :::6666                 :::*        LISTEN      9591/system-atm

Find Process by Port

1
lsof -i :6666
1
2
COMMAND    PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
system-at 9591 root    3u  IPv6  47760      0t0  TCP *:6666 (LISTEN)

Find Out the Binary Path by Process ID

1
ls -lh /proc/9591/exe
1
lrwxrwxrwx 1 root root 0 Sep 26 16:10 /proc/9591/exe -> /bin/system-atm

Kill the Process

1
kill -9 9591

Delete the Binary

1
rm /bin/system-atm