O'Reilly logo

Kubernetes Management Design Patterns: With Docker, CoreOS Linux, and Other Platforms by Deepak Vohra

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

© 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required