是否可以在免费层中使用Google Cloud Kubernetes集群?

时间:2020-09-21 07:11:08

标签: google-cloud-platform containers

查看Free Tier characteristics的Google Cloud,它指出-

  • VM实例必须位于 us-west1
  • 之类的区域中
  • VM计算机类型必须为 f1-micro

因此,为了结合在一起,我创建了以下shell命令来创建Kubernetes集群-

gcloud container clusters create free-cluster-1 -m f1-micro --region us-west1 

尝试在免费层区域中创建一个具有免费层计算机类型的名为free-cluster-1的集群。

但是,在运行该命令时,我会收到此错误消息-

ERROR: (gcloud.container.clusters.create) ResponseError: code=400, message=Node pools of f1-micro machines are not supported due to insufficient memory.

这是否意味着您根本无法在免费层中为Google Cloud创建Kubernetes集群?还是有其他方法可以解决此限制?

1 个答案:

答案 0 :(得分:2)

很遗憾,您无法基于f1-micro共享核心计算机类型创建GKE集群。

请查看文档Choosing a minimum CPU platform部分Limitations

最小CPU平台不能与共享核心计算机类型一起使用, 例如g1-small

因此,由于f1-micro shared-core machine type的资源比g1-small还要少,因此应该可以预期到您遇到的错误。

此外,请查看错误消息:

ERROR: (gcloud.container.clusters.create) ResponseError: code=400, message=Node pools of f1-micro machines are not supported due to insufficient memory.

明确指出“由于内存不足,不支持f1-micro机器”。