大网数据广告活动
服务器运维问答

Recommended disk size for GKE nodes?

· 52CE 我爱测

When I create a new node pool in GKE, the size of the disks default to 100GB. However, when I SSH into a node that's been up for a while, after running df -h there's only 32GB in use. (I don't actually know where this 32GB comes …

问题原文

原帖链接 · Nick · CC BY-SA 4.0

When I create a new node pool in GKE, the size of the disks default to 100GB. However, when I SSH into a node that's been up for a while, after running df -h there's only 32GB in use. (I don't actually know where this 32GB comes from)

Do the nodes really need 100GB disk space? Can I run them with just 10GB for example? First I thought that the pods would use up space for the volumes, but on GKE the pods provision their own additional Persistent disks and don't add to the disk space of the node, so I'm confused why such a large volume is needed for the node itself?

社区高分解答

原帖链接 · Cillié Malan · CC BY-SA 4.0

Do the nodes really need 100GB disk space? Can I run them with just 10GB for example?

It depends on what you are running in your cluster. If you aren't running many containers or if the containers aren't that big, you can probably get away with less than 100GB. I just checked one of our clusters running ~20 workloads and the three nodes were using 10-15Gb of space each.

The containers that run in your cluster need disk space regardless of persistent disks. When a container is started its image is put on disk and its file system mounted as an overlay filesystem (among other things probably). There is probably also storage used for caching images.

To increase or decrease the space used by an existing cluster one would create a new pool with nodes with the required configuration and cordon then delete the old ones.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2019-08-04)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。