Issue 518: Add suport of configurable extra volume mounts #517
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Change log description
hostPathVolumeMounts
andemptyDirVolumeMounts
options as multiple key-value pairs, separated by commas and each consisting of a<name>
=<path>
tuple.hostPathVolumeMounts
andemptyDirVolumeMounts
values.volumes
list and containers'volumeMounts
list.Purpose of the change
Implements #518
Pravega operator should allow to specify "extra" volumes to be mounted into pravega pods, including pravega segment store pods and pravega controller pods. Such volumes may be used to share data between the hosts and containers.
What the code does
The code implements the new pravega options:
hostPathVolumeMounts
andemptyDirVolumeMounts
.To use "extra" volumes in the pravega pods, in the Pravega options, specify:
hostPathVolumeMounts
to addhostPath
volumesemptyDirVolumeMounts
to addemptyDir
volumesThe options consist of multiple key-value pairs, separated by commas and each consisting of a
<name>
=<path>
tuple:<name>
is a volume name, the file or directory.<path>
is where the volume is mounted in the container.For example,
emptyDirVolumeMounts: "heap-dump=/tmp/dumpfile/heap,log=/opt/pravega/logs"
How to verify it
emptyDirVolumeMounts
option to Pravega options parameter, e.g.,emptyDirVolumeMounts: "heap-dump=/tmp/dumpfile/heap,log=/opt/pravega/logs"
.volumes
list and containers'volumeMounts
list has contained the emptyDir volumes and mounts specified in theemptyDirVolumeMounts
.The function has worked as expected on the deployed pravega cluster in our environment.