简体   繁体   English

Kubernetes 每个节点一个 Pod,每个 Pod 一个持久卷

[英]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.

相关问题 每个 kube.netes 节点一个 pod/job - One pod/job per kubernetes node Kube.netes - 每个节点多个 pod 与每个节点一个 pod - Kubernetes - Multiple pods per node vs one pod per node 有没有一种方法可以在kubernetes部署(或有状态集)中为每个Pod创建持久卷? - Is there a way to create a persistent volume per pod in a kubernetes deployment (or statefulset)? Kubernetes-如何创建每个节点一个Pod的StatefulSet? - Kubernetes - How to create a StatefulSet with one Pod per Node? Kubernetes Nginx 多个小型 Pod vs 每个节点一个 Pod - Kubernetes Nginx many small pods vs one pod per node Kubernetes-一个容器中的每个容器一个请求 - Kubernetes - One request per container inside a pod 使用确定性主机名在每个节点上运行一个Pod - Running one pod per node with deterministic hostnames Kubernetes - 为每个卷(而不是每个 pod)设置自定义权限/文件所有权 - Kubernetes - setting custom permissions/file ownership per volume (and not per pod) 如何使用每个节点运行一个并使用所有可用资源的 Pod 在 Kubernetes (GKE) 上自动扩展? - How to auto scale on Kubernetes (GKE) with a pod that runs one per node and uses all available resources? Kubernetes每个节点限制隐藏110个pod吗? - Kubernetes hidden 110 pod per node limit?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM