- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
根据 the documentation :
A PersistentVolume (PV) is a piece of storage in the cluster that has been provisioned ... It is a resource in the cluster just like a node is a cluster resource...
所以我正在阅读所有当前可用的 plugins对于 PV,我知道对于第 3 方/集群外存储,这无关紧要(例如,将数据存储在 EBS、Azure 或 GCE 磁盘中),因为在集群中添加或删除节点时没有影响或影响很小.但是,有不同的,例如(忽略 hostPath
,因为它仅适用于单节点集群):
(至少从我在文档中读到的)不需要第 3 方供应商/软件。
但是also :
... local volumes are subject to the availability of the underlying node and are not suitable for all applications. If a node becomes unhealthy, then the local volume becomes inaccessible by the pod. The pod using this volume is unable to run. Applications using local volumes must be able to tolerate this reduced availability, as well as potential data loss, depending on the durability characteristics of the underlying disk.
The local PersistentVolume requires manual cleanup and deletion by the user if the external static provisioner is not used to manage the volume lifecycle.
用例
假设我有一个带有单个 local
PV 的单节点集群,我想向该集群添加一个新节点,因此我有 2 节点集群(为简单起见,数量较少)。
来自已存在的 local
PV 的数据是否会被 1:1 复制到新节点中,就像有一个 PV 有 2 个冗余节点一样,还是严格绑定(bind)到现有节点?
如果无法将现有 PV 从 1 个节点调整为 2 个节点,是否可以创建一个新的 PV(从头开始创建),以便在集群上的 2 个以上节点之间进行 1:1 复制?
或者,如果不是,那么不使用第 3 方集群外解决方案的正确方法是什么?使用 csi
是否会导致整体方法发生任何变化,或者它是否与冗余相同,只是引擎盖下的不同“引擎”?
最佳答案
Can a new PV be created so it's 1:1 replicated between 2+ nodes on the cluster?
根本没有复制任何标准卷类型。如果您可以使用支持 ReadWriteMany
访问(最适合 NFS)的卷类型,那么多个 pod 可以同时使用它,但您必须运行匹配的 NFS 服务器。
您引用的卷类型:
hostPath
是 pod 恰好在其上运行的节点上的目录。它不是任何特定节点上的目录,因此如果在不同节点上重新创建 pod,它将引用同一目录但在新节点上,可能具有不同的内容。除了基本的测试场景外,我不确定 hostPath
PersistentVolume 何时会有用。
local
是特定节点上的目录,或者至少遵循节点亲和性约束。 Kubernetes 知道并非所有存储都可以挂载到每个节点上,因此这会自动限制 pod 在具有目录的节点上运行(假设该节点仍然存在)。
csi
是一种极其通用的扩展机制,因此您可以运行不在链接列表中的存储驱动程序。存储后端的 CSI 版本可能比树内版本更好地支持某些功能。 (我熟悉 AWS:EBS CSI driver 支持快照和调整大小;EFS CSI driver 可以动态配置 NFS 目录。)
在本地测试集群的特定情况下(例如,使用 kind ),使用 local
卷将限制 pod 在具有数据的节点上运行,这比使用更健壮hostPath
卷。不过,它不会复制数据,因此如果删除包含数据的节点,数据也会随之消失。
关于kubernetes - Kubernetes local/csi PV 内容是否同步到新节点?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67654530/
我有一个网站正在Firefox和Chrome中返回一些奇怪的警告消息和错误。 Firefox返回以下错误: GET http://fonts.googleapis.com/css?family=Var
我正在使用 Facebook 登录从登录我的网站的用户那里获取数据,并且我正在使用 console.log 函数。 控制台向我显示的唯一内容如下: 犯罪现场调查/待定_ & 犯罪现场调查/_待定 这是
我正在使用 kubernetes v1.16.10 与 Ceph 13.2.2 模仿版 通过 进行动态卷配置的集群ceph-csi . 但后来我找到了 ceph-rbd Ceph RBD (kuber
在 Swift 的 Xcode 6 beta 3 中加载带有 png 图像的 UIImages 时,如下所示: PipsImg = (UIImage(named: "Die-1")) 或
kubelet分析-csi plugin注册源码分析。csi driver注册源码分析。kubelet注册csi driver的相关功能代码与kubelet的pluginManager有关,所以接下来
我开发了一个 PhoneGap 应用程序,我打算将其部署到我的 BlackBerry Bold 9700。我的开发工具包括 NotePad++、Apache Ant、Sun JDK 和 BlackBe
我正在使用 jQuery 导入外部 html 文件,如下所示: $("#header").load("header.html"); $("#content").load("home.html"); $
当你运行 csi.exe/? (安装了 Visual Studio 2015 更新 2),您将获得以下语法 Microsoft (R) Visual C# Interactive Compiler v
kubelet分析-csi driver注册分析-Node Driver Registrar源码分析。node-driver-registrar是一个sidecar容器,通过Kubelet的插件注册机
如何使用 PHP 读取 ANSI 转义码 CSI 6n 的结果? (DSR – 设备状态报告:https://en.wikipedia.org/wiki/ANSI_escape_code#CSI_co
根据 the documentation : A PersistentVolume (PV) is a piece of storage in the cluster that has been pr
从应用程序开发上下文的角度来看,是否可以通过此智能设备的 WiFi 卡从 WiFi 接入点获取信道状态信息 (CSI) 信息?我想使用这些信息为我所在大学的室内定位项目创建一个 CSI - 指纹识别系
在 C# 交互式(作为 Visual Studio 2019 或独立的一部分)中,我想使用 C# 编写类似的代码: var s = "abcdef"; var s1 = s[2..4]; 这给出了以下
我有我的自定义 CSI 驱动程序。我想在我的卷附件 list 文件中添加一个自定义注释,我希望我的 CSI 驱动程序相应地解析和处理它。 如何将我的注释传递给 CSI 驱动程序并在 golang 代码
为什么函数 compose 定义在解释器 csi 而不是编译器 csc 中?我知道我可以很容易地自己定义它,但我只是想知道为什么会有这样的差异。 最佳答案 compose 过程来自 data-stru
我已经开始使用 c# interactive 了。在 Visual Studio 中,我能够使用以下代码创建一些窗口: #r "PresentationFramework" using System.
我看过一些研究论文,其中 CSI(信道状态信息)被用于人类事件识别(运动)或有时用于获得室内定位。 现在,我想在我的笔记本电脑(Ubuntu 安装为 VM)和“Intel 双频无线 AC-3165”W
关闭。这个问题不满足Stack Overflow guidelines .它目前不接受答案。 想改善这个问题吗?更新问题,使其成为 on-topic对于堆栈溢出。 3个月前关闭。 Improve th
按照此处概述的方式更新我的 CSI Secrets Store 驱动程序: https://learn.microsoft.com/en-us/azure/aks/csi-secrets-store-
我们正在使用 AKS、Azure Key Vault,并且目前使用 CSI 驱动程序在创建容器时将 secret 数据传递到我们的容器中(通过 CSI 驱动程序)。 CSI 驱动程序的文档似乎表明它支
我是一名优秀的程序员,十分优秀!