Blog

Unable to create listener: Error listen tcp4 0.0.0.0:80 bind: permission denied in Kubernetes

kubernetes-tcp4-bind
Kubernetes

Unable to create listener: Error listen tcp4 0.0.0.0:80 bind: permission denied in Kubernetes

The pod is running either in your minikube on your local or Kubernetes cluster and getting this error while using kubernetes port forwarding for your application looks like,

Unable to create listener: Error listen tcp4 127.0.0.1:80: bind: permission denied, Unable to create listener: Error listen tcp6 [::1]:80: bind: permission denied

Just execute the command below,

$ kubectl port-forward --address 0.0.0.0 service/thelinuxfaq 80:8080 -n new_namespace 

The above command will address your host and the port forward.

Spread the love

Leave your thought here

Your email address will not be published. Required fields are marked *