Kubernetes Pod可以增长到多少RAM? [英] How much RAM can my Kubernetes pod grow to?

查看:41
本文介绍了Kubernetes Pod可以增长到多少RAM?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道RAM上的当前限制. (未明确配置限制/请求.)

I'd like to know the current limit on the RAM. (No limit/request was explicitly configured.)

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

How do I see the current configuration of an existing pod?

该配置不仅包括现在正在使用多少内存,还包括最大限制(该位置将被关闭).

That configuration would include not only how much memory is now in use, but also the max-limit, the point at which it would be shut down.

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

(If I blow up the heap with huge strings, I see a limit of approx 4 GB, and the Google Cloud Console shows a crash at 5.4 GB (which of course includes more than the Python interpreter), but I don't know where this comes from. The Nodes have up to 10 GB.)

我尝试了kubectl get pod id-for-the-pod -o yaml,但是它没有显示任何有关内存的信息.

I tried kubectl get pod id-for-the-pod -o yaml, but it shows nothing about memory.

我正在使用Google Container Engine.

I am using Google Container Engine.

推荐答案

@Artem Timchenko的评论答复:kubectl -n NAMESPACE describe pod POD_NAME | grep -A 2 "Limits"

Answer from comment from @Artem Timchenko: kubectl -n NAMESPACE describe pod POD_NAME | grep -A 2 "Limits"

这篇关于Kubernetes Pod可以增长到多少RAM?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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