elnino

k8s提供多种volume接口,其中local 和host path是容易混淆的两个接口。下面这篇文章解释了两者的区别:

https://groups.google.com/forum/#!topic/kubernetes-users/68Yvm8ZkztI

关键内容:
Both use local disks available on a machine. But! Imagine you have a cluster of three machines and have a Deployment with a replica of 1. If your pod is scheduled on node A, writes to a host path, then the pod is destroyed. At this point the scheduler will need to create a new pod, and this pod might be scheduled to node C which doesn\'t have the data. Oops!

Local volumes fix this by ensuring a pod is scheduled to the machine where the data exists.

分类:

技术点:

相关文章:

  • 2021-11-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-05
  • 2022-02-01
猜你喜欢
  • 2021-12-18
  • 2022-01-16
  • 2022-01-01
  • 2021-05-13
  • 2022-02-19
  • 2022-03-01
  • 2021-11-17
相关资源
相似解决方案