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