I have an issue here, _*how I should free the port to create my service?*_ ``` . . .

Edith Puclla:
I have an issue here, how I should free the port to create my service?

controlplane $ k apply -f /var/answers/ingress-service.yaml
The Service "ingress" is invalid: spec.ports[0].nodePort: Invalid value: 30080: provided port is already allocated

This is the service:

apiVersion: v1
kind: Service
metadata:
  name: ingress
  namespace: ingress-space
spec:
  type: NodePort
  ports:
  - port: 80
    targetPort: 80
    protocol: TCP
    nodePort: 30080
    name: http
  - port: 443
    targetPort: 443
    protocol: TCP
    name: https
  selector:
    name: nginx-ingress

Kiran Kumar R:
Hi @Edith Puclla try with another port number instead of 30080.

Kiran Kumar R:
30080 is already used.

Edith Puclla:
yayay, I will try :slightly_smiling_face:

Edith Puclla:
ye sit worked :blush:, just they ask for that port 30080, no matter. I am wondering why I had that port busy

Edith Puclla:
Thank you so much @Kiran Kumar R :heart:

Kiran Kumar R:
welcome :heart:

Tanumoy Ghosh:
You could first find out which process is consuming that port and then kill the process; here I’m trying to find out which process is running over port 8080

$ sudo lsof -i:8080
COMMAND     PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
app_kuber 15697 root    4u  IPv4 590269      0t0  TCP *:http-alt (LISTEN)

$ kill -9 15697