How do I enable http traffic for GCE instance templates?

前端 未结 5 648
攒了一身酷
攒了一身酷 2020-12-20 17:48

When creating an instance template in Google Compute Engine, how do I enable http traffic for instances created from the template?

I was thinking that providing an h

5条回答
  •  粉色の甜心
    2020-12-20 18:12

    The default network in the project comes with default firewall rules "default-allow-http" and "default-allow-https" to allow traffic on port 80 and 443. These rules have a target tag setup as "http-server". When setting up the instance template you can check the box "Allow HTTP traffic" and "Allow HTTPS traffic" from your developer console, by doing that the default firewall rules will be applied to the new instances created through this instance template.

提交回复
热议问题