将Kubernetes设置为emptyDir卷大小 [英] Setting Kubernetes emptyDir volume size

查看:484
本文介绍了将Kubernetes设置为emptyDir卷大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为吊舱创建基于ram的emptyDir体积.

I'm creating a ram based emptyDir volume for a pod.

 volumes:
  - name: ram-disk
    emptyDir:
      medium: "Memory"

因为这是一个ram磁盘,所以我需要设置它将从ram占用的最大大小.有设置最大尺寸和最小尺寸的参数吗?

Because this is a ram disk, I need to set the maximum size which it will take from the ram. Is there a parameter to set maximum size and minimum size?

推荐答案

对于kubernetes-1.7.x,它是

For kubernetes-1.7.x, it's possible to set the sizeLimit for an EmptyDir.

这篇关于将Kubernetes设置为emptyDir卷大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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