当前位置:网站首页>TopoLVM: 基于LVM的Kubernetes本地持久化方案,容量感知,动态创建PV,轻松使用本地磁盘
TopoLVM: 基于LVM的Kubernetes本地持久化方案,容量感知,动态创建PV,轻松使用本地磁盘
2022-06-27 00:33:00 【InfoQ】
- Emptydir 非持久化方案,Pod删除,EmptyDir也会被清空。另外Emptydir使用的是rootfs的存储空间,而这个空间有可能是放在在系统盘上的,所以对它的使用当慎之又慎。
- HostPath 持久化方案,但安全风险很高,官方不推荐。另外,从使用角度也不方便。比如作为用户,你首先要清楚知道目标系统的情况,知道具体的盘符和目录位置然后才能在HostPath里正确引用。但现实是从集群安全角度,用户不一定有直接登录机器的权限。另外即使你的Pod占了某个宿主机的目录,也不能排除别人二次占用,或者误操作。所以HostPath的使用场景实际很受限。
- Local Persistent Volume 持久化方案,以PVC/PV的形式来使用本地存储。想法很好,但是不能动态创建PV,对于PV提供者来说,心智负担较高。当然社区现在也有提供Local Static Provisioner,某种程度上简化了这块的心智负担,但是仍然需要预先规划目录或者分区,略显不足。
- 按需申请 意味着最好以PVC+StorageClass的模式来提供服务,做到PV动态创建。而要实现这点,容量感知 是关键,因为若调度到空间不足的节点上很明显是不合理的。最好能结合PVC申请的容量+Node上的剩余容量,综合选择最优的节点来做绑定。
- 空间隔离 要确保用户申请的空间大小一定是足额的,不被侵占的。从这里看,单纯的把文件系统的目录用作PV但容量上彼此不隔离显然不合适。
- 自动化生命周期管理 动态Provisioning是强需。
- 动态Provisioning
- 支持原生数据块卷(Raw Block Volume)
- Volume伸缩

- Volume: https://kubernetes.io/docs/concepts/storage/volumes/
- PV: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
- Storage Capacity: https://kubernetes.io/docs/concepts/storage/storage-capacity/
- LVM: https://en.wikipedia.org/wiki/Logical_Volume_Manager_(Linux)
边栏推荐
- 自定义JSP[if,foreach,数据,select]标签
- Gaussian and Summary Stats
- Find the minimum value in the rotation sort array ii[classical Abstract dichotomy + how to break the game left, middle and right are equal]
- Implementation of ARP module in LwIP
- Basic introduction to C program structure Preview
- Account management, database building and four engines + cases of MySQL
- 超越锂电池——未来电池的概念
- 气液滑环与其他滑环的工作原理有什么区别
- Moher College - SQL injection vulnerability test (error reporting and blind note)
- Is it safe to open a securities account online? Is it reliable to speculate in stocks by mobile phone
猜你喜欢
Is there anyone who doesn't know the three cores of concurrent programming?
XSS攻击笔记(上)
Redis detailed tutorial
Hid device descriptor and keyboard key value corresponding coding table in USB protocol
Batch generate folders based on file names
滑环选型选购时需要注意的技巧
Unable to create a folder to save the sketch: MKDIR sketch
Lambda表达式
Implementation of ARP module in LwIP
Law of Large Numbers
随机推荐
Esp32-solo development tutorial to solve config_ FREERTOS_ UNICORE problem
记录一次换行符引起的bug
超越锂电池——未来电池的概念
基于SSMP的宠物医院管理系统
What is the difference between the working principle of gas-liquid slip ring and other slip rings
CPU exception handling
直播回顾 | 子芽&CCF TF:云原生场景下软件供应链风险治理技术浅谈
温故知新--常温常新
史上最难618,TCL夺得电视行业京东和天猫份额双第一
墨者学院-SQL注入漏洞测试(报错盲注)
05 | standard design (Part 2): how to standardize the different styles of commit information, which are difficult to read?
【Vscode】预览md文件
网络中的网络(套娃)
These 10 copywriting artifacts help you speed up the code. Are you still worried that you can't write a copywriting for US media?
3 - wire SPI Screen Drive
Record a bug caused by a line break
How to measure the thickness of glass substrate by spectral confocal
Simple and fast digital network (network dolls in the network)
05 | 规范设计(下):commit 信息风格迥异、难以阅读,如何规范?
Statistical Hypothesis Testing