I would like to add PVC dynamically without rebuilding the image. Does anyone know about some practice how to do that?
Asked
Active
Viewed 34 times
0
-
Welcome to StackOverflow. Please read [ask] and [mcve]. – Ashley Mills Aug 09 '18 at 08:56
1 Answers
0
Addition of a persistent volume has got nothing to do with building an image.
You need to configure the deployment config to mount the persistent volume into the container for the pod created. This can be done through the web console, or using oc set volume
on the command line.
Suggest you have a read through:
which has a chapter about working with persistent storage.

Graham Dumpleton
- 57,726
- 6
- 119
- 134