Node size on GKE kubernetes

不羁的心 提交于 2019-12-11 04:14:09

问题


We run our cluster with two nodes of type standard 2: 7.5Gb and 2vCPU

are there any recommended minimum size for a cluster on GKE. I assume there is no real master as this is a managed "service"?

I'm struggling to deal with resource limits.


回答1:


There is no recommended minimum size. However, pods have both CPU and memory requests and limits.

Requests define how much free CPU/memory there must be on a node so a pod can be scheduled there; that amount is then reserved for that pod and won't be considered 'free' for scheduling of a next pod.
On the other hand, limits define the maximum amount a pod can ask for - these can be overcommitted.

Try looking at your kubectl describe nodes output, which lists all pods and their requests and limits. By default, the requests are 100m (10% of a core) - if you know that some of your pods don't need that much, set this lower. Then you will be able to schedule more pods on a node or at least work out the number of nodes you need.



来源:https://stackoverflow.com/questions/40910362/node-size-on-gke-kubernetes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!