Skip to content

Latest commit

 

History

History
16 lines (14 loc) · 517 Bytes

2020-11-08-howtoAvoidStorageclassUsedByOthers.md

File metadata and controls

16 lines (14 loc) · 517 Bytes
layout title date desc keywords categories tags icon
post
如何保证Storage Class不被别的项目使用
2020-11-08
container, business, cost saving
Work
container
value
icon-html

即如何把Storage Class绑定到Namespace上面

Storage class是cluster wide资源,正常kubernetes不支持你这么做。

但是可以自己写Operator来坚持你自己的PVC,然后自动去创建这个资源, 已经有人实现了这个方案: https://github.com/banzaicloud/pvc-operator