© Deepak Vohra 2017

Deepak Vohra, Kubernetes Management Design Patterns, 10.1007/978-1-4842-2598-1_6

6. Using Volumes

Deepak Vohra

(1)White Rock, British Columbia, Canada

Kubernetes pods are invariably associated with data, and the data can either be made integral to a Docker container via its Docker image or decoupled from the Docker container.

Problem

If data (in on-disk files) is made integral to a Docker container , the following issues could result:

  • The data is not persistent. The data is removed when a Docker container is restarted, which could also be due to a container crash.

  • The data is container-specific and cannot be shared with other containers as such.

Solution

One of the principles of modular design is the Single Responsibility Principle ...

Get Kubernetes Management Design Patterns: With Docker, CoreOS Linux, and Other Platforms 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.