kubernetes - 我的 Kubernetes pod 可以增长到多少 RAM?

标签 kubernetes kubectl google-kubernetes-engine

我想知道 RAM 的当前限制。 (没有明确配置限制/请求。)

如何查看现有 Pod 的当前配置?

[编辑] 该配置不仅包括现在正在使用的内存量,还包括最大限制,即关闭的时间点。

(如果我用巨大的字符串炸毁堆,我会看到大约 4 GB 的限制,并且 Google Cloud Console 显示崩溃在 5.4 GB(这当然包括比 Python 解释器更多),但我不知道在哪里这来自。节点最多有 10 GB。)

我试过 kubectl get pod id-for-the-pod -o yaml ,但它没有显示任何内存。

我正在使用 Google 容器引擎。

最佳答案

使用 kubectl top 命令kubectl top pod id-for-the-pod

kubectl top --help

Display Resource (CPU/Memory/Storage) usage.

The top command allows you to see the resource consumption for nodes or pods.

This command requires Heapster to be correctly configured and working on the server.

Available Commands: node Display Resource (CPU/Memory/Storage) usage of nodes pod Display Resource (CPU/Memory/Storage) usage of pods

Usage: kubectl top [flags] [options]

关于kubernetes - 我的 Kubernetes pod 可以增长到多少 RAM?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53812196/

相关文章:

azure - velero 的默认快照位置

kubernetes - 如何在 'command with arguments' 的容器上执行 'multi-container pod' ?

go - 使用 Golang k8s 客户端在 GKE k8s 集群中部署服务

kubernetes - Rabbitmq-ha helm chart,管理插件抛出错误

java - 在 Kubernetes 中,我怎样才能有一种访问模式来一次允许一个 pod 写入而许多 pod 只读?

node.js - Kubernetes 通过基于时间的触发器扩展 pod

kubernetes - Kubectl exec 命令将内容写入 pod 中的文件

windows - 永久设置kubectl缓存目录

Kubernetes - 对于 Scale,当在扩展 pod (GKE) 时附加持久卷时 pod 处于挂起状态

kubernetes - 如何在多个 Pod 上安装相同的持久卷?