5 Storing data with volumes, mounts, and claims

Data access in a clustered environment is difficult. Moving compute around is the easy part—the Kubernetes API is in constant contact with the nodes, and if a node stops responding, then Kubernetes can assume it’s offline and start replacements for all of its Pods on other nodes. But if an application in one of those Pods was storing data on the node, then the replacement won’t have access to that data when it starts on a different node, and it would be disappointing if that data contained a large order that a customer hadn’t completed. You really need clusterwide storage, so Pods can access the same data from any node.

Kubernetes doesn’t have built-in clusterwide storage, because there isn’t ...

Get Learn Kubernetes in a Month of Lunches now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.