如何为GCE实例模板启用HTTP流量? [英] How do I enable http traffic for GCE instance templates?

查看:42
本文介绍了如何为GCE实例模板启用HTTP流量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Google Compute Engine中创建实例模板时,如何为通过该模板创建的实例启用http流量?

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

我本以为提供http标记是可以的,但似乎没有用.

I was thinking that providing an http tag would work, but it doesn't seem to do so.

推荐答案

项目中的默认网络带有默认防火墙规则"default-allow-http"和"default-allow-https",以允许端口80和443.这些规则将目标标记设置为"http服务器".设置实例模板时,您可以在开发人员控制台中选中允许HTTP流量"和允许HTTPS流量"框,方法是将默认防火墙规则应用于通过该实例模板创建的新实例.

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.

这篇关于如何为GCE实例模板启用HTTP流量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆