【问题标题】:Is it possible to have Google Cloud Kubernetes cluster in the free tier?是否可以在免费层中使用 Google Cloud Kubernetes 集群?
【发布时间】:2020-09-21 15:47:13
【问题描述】:

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

  • 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 集群?或者有没有其他方法可以绕过这个限制?

【问题讨论】:

  • 不,你不能。但是您可以使用 IBM Cloud(如果只有 K8S 部分对您很重要。如果是 Google Cloud 生态系统......对不起!)

标签: google-cloud-platform containers


【解决方案1】:

很遗憾,您无法基于f1-micro shared-core 机器类型创建 GKE 集群。

查看文档Choosing a minimum CPU platformLimitations 部分:

最小 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机”。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-06-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-07-14
    • 2018-09-11
    相关资源
    最近更新 更多