首页 > 解决方案 > Cloudshell 机器类型在 GCP 中是否相同?

问题描述

请原谅我,我是一个新手,有很多新手问题。

我在 Google 的官方文档中找不到关于 cloudshell 机器类型的信息。就我而言,我有 e2-standard-2 作为机器类型。

e2-standard-2 是为 GCP 的 cloudshell 全面配置的机器类型吗?

标签: google-cloud-platformgoogle-cloud-shell

解决方案


正如@norbjd 所提到的,官方文档没有指定 Cloud Shell 的确切机器类型:

当您启动 Cloud Shell 时,它会预配一个运行基于 Debian 的 Linux 操作系统的 Google Compute Engine 虚拟机。

您可以通过在 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.


推荐阅读