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 the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.