[英]Kubernetes one pod per node, one persistent volume per pod
I was curious if it is possible to move completely off hostpaths and use local volumes (persistent volumes) instead.我很好奇是否有可能完全脱离主机路径并使用本地卷(持久卷)。 However, there doesn't seem to be a way to include volumeClaimTemplates into a daemonset.
但是,似乎没有办法将 volumeClaimTemplates 包含到守护进程中。
Statefulsets provide volumeClaimTemplates, but they require the replicas to be manually defined, as opposed to auto scaling to as many nodes as can be found. Statefulsets 提供 volumeClaimTemplates,但它们需要手动定义副本,而不是自动扩展到尽可能多的节点。
Is there a way to automatically scale to all nodes, and also create a pvc per replica?有没有办法自动扩展到所有节点,并为每个副本创建一个 pvc?
Related question where they decided to use statefulsets and give up autoscaling: Handling PersistentVolumeClaim in DaemonSet他们决定使用 statefulsets 并放弃自动缩放的相关问题: Handling PersistentVolumeClaim in DaemonSet
There is no possibility for now to use PersistentVolumes in Daemon Set.现在不可能在 Daemon Set 中使用 PersistentVolumes。
There was a feature request for it on Github but unfortunately it was closed. Github上有一个功能请求,但不幸的是它被关闭了。 Link to this request: volumeClaimTemplates available for Daemon Sets
此请求的链接: volumeClaimTemplates available for Daemon Sets
There is a comment in the link above which is describing this topic a bit more.上面的链接中有一条评论,对这个话题进行了更多的描述。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.