f1-micro中的GCLOUD Kubernetes导致(由于内存不足,不支持f1-micro机器的节点池) [英] GCLOUD Kubernetes in f1-micro results in (Node pools of f1-micro machines are not supported due to insufficient memory)

查看:176
本文介绍了f1-micro中的GCLOUD Kubernetes导致(由于内存不足,不支持f1-micro机器的节点池)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用Google的UI在集群中启动一个新的f1-micro节点,但失败了.因此,我决定使用gcloud运行它,看看是否提供了更多详细信息

I tried to start a new f1-micro node in my cluster using Googles UI and it silently fails. So I decided to run it using gcloud to see if that one provides more details

所以我运行了以下

gcloud container node-pools create my-f1-pool --image-type ubuntu --machine-type=f1-micro --cluster bcomm-sg-cluster --disk-size=10GB --enable-autoscaling --min-nodes=2 --max-nodes=6 --zone=asia-southeast1-a --enable-autorepair

这是我得到的结果

WARNING: Modifications on the boot disks of node VMs do not persist across node recreations. Nodes are recreated during manual-upgrade, auto-upgrade, auto-repair, and auto-scaling. To preserve modifications across node recreation, use a DaemonSet.
WARNING: Newly created clusters and node-pools will have node auto-upgrade enabled by default. This can be disabled using the `--no-enable-autoupgrade` flag.
WARNING: Starting in 1.12, new node pools will be created with their legacy Compute Engine instance metadata APIs disabled by default. To create a node pool with legacy instance metadata endpoints disabled, run `node-pools create` with the flag `--metadata disable-legacy-endpoints=true`.
This will enable the autorepair feature for nodes. Please see https://cloud.google.com/kubernetes-engine/docs/node-auto-repair for more information on node autorepairs.
ERROR: (gcloud.container.node-pools.create) ResponseError: code=400, message=Node pools of f1-micro machines are not supported due to insufficient memory.

由于内存不足,不支持f1-micro机器的节点池"是什么意思.如果不允许,那么为什么存在该选项?同样在我开始玩GCP时,在添加N1之前,我创建的第一个代码池是3 f1-micro.但是现在我无法添加f1-micro并收到此错误

What does it mean by "Node pools of f1-micro machines are not supported due to insufficient memory". if its not allowed, then why does the option exist? also previously when I started toying with GCP, the first code pool I created was 3 f1-micro before I added an N1. but now I cannot add the f1-micro and get this error instead

推荐答案

GKE

The GKE documentation says an the end of the machine type table:

注意:不支持f1-micro机器,因为它们没有 有足够的内存来运行GKE.

Note: f1-micro machines are not supported, because they do not have sufficient memory to run GKE.

回答关于为什么可以创建f1-micro节点池的问题,如果使用1.12.0版本创建GKE,则会有一条注释:

Answering the question about why you can crete a f1-micro node pool, if you create your GKE with a 1.12.0 version, there is a note that sais:

注意:在1.12.0之前,内存小于1GB的计算机是 无需保留内存.

Note: Prior to 1.12.0, machines with less than 1GB of memory are exempt from memory reservations.

实际上,如果使用更高版本,则对于内存少于1 GB的计算机,保留内存为255 MiB.

Actually, if you use a higher version, the reservation memory are 255 MiB of memory for machines with less than 1 GB of memory.

f1-micro 计算机仅具有0.60 GB的记忆.

The f1-micro machines only have 0.60 GB of Memory.

因此,如果您使用的内存为0.60GB,则无法满足操作系统和Kubernetes的要求,并且无法为Pod分配内存.

So, if you use a machine with 0.60GB it can't handle the requirements of the OS, and the Kubernetes and have Allocatable memory for the pods.

这篇关于f1-micro中的GCLOUD Kubernetes导致(由于内存不足,不支持f1-micro机器的节点池)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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