How can i change a service running on one port number, now i want to run another service on same old port number How can i change a service running on one port number, now i want to run another service on same old port number kubernetes kubernetes

How can i change a service running on one port number, now i want to run another service on same old port number


i deleted deployment and pod. But i forgot that service is running after deleting nginx service i am able to reuse the port number 30080 for other deployment.

socket.error: [Errno 48] Address already in use

this question also helped me but it points to killing that process, here the process running is kube-proxy.

sudo lsof -i:30080

COMMAND PID USER FD TYPE DEVICE SIZE/OFFNODE NAME kube-prox 3320 root 8u IPv6 40388 0t0 TCP *:30080(LISTEN)

which i cant delete.It might create issue deleting kube-prox

Please let me know if this was the right approach or not.