0

This question is regarding firewall rule on GCP.

I run my development and production server on the same cluster and separating them by namespace only. For development, I expose a nodeport (e.g. 8000) and create a GCP firewall rule to access the development server.

Is this dangerous? Since the firewall rule would allow access all pods at port 8000 on the cluster.

gke
  • 1

1 Answers1

0

Firewall is only limited to your nodes only and the range is as follows 30000–32767. As @John Hanley mentioned limit port access to specific CIDR block addresses. So using port 30000 as an example opens a specific port on all the Nodes (the VMs), and any traffic that is sent to this port is forwarded to a service, which only serves a subset of pods, not all pods.

dany L
  • 124
  • 5