Unable to create listener: Error listen tcp4 0.0.0.0:80 bind: permission denied in Kubernetes
March 10, 2023 2023-06-29 4:18Unable to create listener: Error listen tcp4 0.0.0.0:80 bind: permission denied in 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.