Open Kasper886 opened 3 years ago
gcloud compute firewall-rules create kubernetes-the-hard-way-allow-nginx-service \ --allow=tcp:${NODE_PORT} \ --network kubernetes-the-hard-way
I changed ${NODE_PORT} to the port that I received from the command "kubectl get svc" (31727), but I still cannot run curl command. I also tried to use 80 port for firewall creation command. curl -I http://${EXTERNAL_IP}:${NODE_PORT} - connection refused.
But it works from my browser from remote PC)))
ERROR: (gcloud.compute.firewall-rules.create) Firewall rules must be of the form PROTOCOL[:PORT[-PORT]]; received [tcp:].