[英]Kubernetes Custom Volume Plugin with Dynamic Provisioning
I have a proprietary file-system and I would like to use it for providing file storage to my K8S pods. 我有一个专有的文件系统,我想用它来为我的K8S pod提供文件存储。 I am currently running K8S v1.5.1, but open upgrade to 1.6 if need be.
我目前正在运行K8S v1.5.1,但如果需要,可以打开升级到1.6。
I would like to make use of Dynamic Provisioning so that the volumes are created on need basis. 我想使用动态预配置,以便根据需要创建卷。 I went through the official documentation on kubernetes.io and this is what I have understood so far:
我浏览了关于kubernetes.io的官方文档,这是我目前所理解的:
What I am not able to make out is: 我无法弄清楚的是:
Appreciate any help in answering any or all of the above. 在回答任何或所有上述内容时,感谢您的任何帮助。
Thanks! 谢谢!
Is Provisoner referred by Storage Class and K8S Volume Plugin one and the same? If they are different, how?
It should be same if you want to provision the storage using that plugin. 如果要使用该插件配置存储,则应该相同。
There is mention of External Provisoner in K8S documentation. Does this mean I can write the K8S Volume Plugin for my filesystem out-of-tree (outside K8S code)?
Yes, thats correct. 对,那是正确的。
My filesystem provides REST APIs to create filesystem volumes. Can I invoke them in my provisoner/volume plugin?
Yes, as long as the client is part of the provisioner code. 是的,只要客户端是供应商代码的一部分。
If I write an out-of-tree plugin, how do I load it in my K8S cluster so that it can be used to provision volumes using the Storage Class?
It can run as a container or you can invoke it by a binary execution model. 它可以作为容器运行,也可以通过二进制执行模型调用它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.