问题描述
对不起,我是一个新手,有很多新手问题。
我在谷歌官方文档中找不到关于cloudshell机器类型的信息。最后,我将 e2-standard-2 作为机器类型。
e2-standard-2 是否是 GCP 的 cloudshell 全面配置的机器类型?
解决方法
如@norbjd 所述,official documentation 未指定 Cloud Shell 的确切机器类型:
当您启动 Cloud Shell 时,它会预配一个 Google Compute Engine 运行基于 Debian 的 Linux 操作系统的虚拟机。
您可以通过在 Cloud Shell 中运行两个命令之一来验证机器类型:
wget -q -O - --header Metadata-Flavor:Google metadata/computeMetadata/v1/instance/machine-type
-
curl -s http://metadata.google.internal/computeMetadata/v1/instance/machine-type -H "Metadata-Flavor: Google"
由 @PlainH2O 提供。
根据@JohnHanley、@PlainH2O 和@norbjd 提供的其他信息,我们可以假设免费试用帐户提供了 e2-standard-2
,而付费帐户提供了 e2-standard-4
。