Google Compute Engine添加了磁盘和SSL支持 [英] Google Compute Engine adding disk and SSL support

查看:67
本文介绍了Google Compute Engine添加了磁盘和SSL支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是GCE的新手.我能够使用gcutil工具和GCE控制台创建新实例.有几个我不清楚的问题需要帮助:

I am new to GCE. I was able to create new instance using gcutil tool and GCE console. There are few questions unclear to me and need help:

1)创建新实例时,GCE是否提供永久磁盘?我认为默认情况下为10GB,但不确定.在不丢失其上保存的数据的情况下停止实例的正确方法是什么?如果说我需要20GB的磁盘空间,那将是什么费用(美国地区)?

1) Does GCE provides persistent disk when a new instance is created? I think its 10GB by default, not sure though. What is the right way to stop the instance without loosing data saved on it and what will be the charge (US zone) if say I need 20GB of disk space for that?

2)如果我需要SSL来启用HTTPS,我应该做些额外的步骤吗?我想我需要按照gcutil addfirewall命令添加防火墙并创建证书(或从第三部分安装证书)?

2) If I need SSL to enable HTTPS, is there any extra step I should do? I think I will need to add firewall as per the gcutil addfirewall command and create certificate (or install it from third part) ?

推荐答案

1)如果想要一个根驱动器,其数据保留与任何虚拟机的生命周期无关,则绝对要使用永久磁盘.通过Google Cloud Console创建Compute Engine实例时,启动源"下拉菜单为您的启动设备显示以下选项:

1) Persistent disk is definitely the way to go if you want a root drive on which data retention is independent of the life cycle of any virtual machine. When you create a Compute Engine instance via the Google Cloud Console, the "Boot Source" pull-down menu presents the following options for your boot device:

  • 映像中的新永久磁盘
  • 快照中的新永久磁盘
  • 现有的永久磁盘
  • 从映像暂存磁盘(不推荐)

默认选项是第一个(来自映像的新永久磁盘"),它将创建一个新的10 GB PD,以您的实例名称命名,并带有"boot-"前缀.您也可以单独创建一个永久磁盘,然后选择现有永久磁盘"选项(以及现有磁盘的名称)以将现有的PD用作启动设备.在这种情况下,您的PD必须已经预加载了图像.

The default option is the first one ("New persistent disk from image"), which creates a new 10 GB PD, named after your instance name with a 'boot-' prefix. You could also separately create a persistent disk and then select the "Existing persistent disk" option (along with the name of your existing disk) to use an existing PD as a boot device. In that case, your PD needs to have been pre-loaded with an image.

回复:关于20 GB PD的成本的问题,此处是PD的定价详细信息.

Re: your question about cost of a 20 GB PD, here are the PD pricing details.

详细了解Compute Engine永久磁盘.

2)您可以从GCE实例提供SSL/HTTPS流量.如前所述,您需要配置防火墙以允许传入的SSL流量(通常为端口443),并且需要在Web服务器上配置https服务并安装所需的证书.

2) You can serve SSL/HTTPS traffic from a GCE instance. As you noted, you'll need to configure a firewall to allow your incoming SSL traffic (typically port 443) and you'll need to configure https service on your web server and install your desired certificate(s).

详细了解Compute Engine网络和防火墙.

这篇关于Google Compute Engine添加了磁盘和SSL支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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