Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Kubernetes 部署中,您可以将卷挂载指定为只读。它有性能优势,还是仅合乎逻辑?
它取决于卷类型吗?
为了明确我的意图,我在一个作者和许多读者的场景中使用 pv,并注意到挂载卷上的任何 fs 操作都比易失性磁盘上的慢得多。
这完全取决于卷类型。当他们知道卷是只读的时,有些人可能会实施性能优化。