Co-authored-by: lab-assistant[bot] <180935599+lab-assistant[bot]@users.noreply.github.com>
2.4 KiB
Global Options
The following options are available for all persistence types:
enabled
Enables or disables the persistence item. Defaults to true
.
type
Sets the persistence type
Valid options are:
globalMounts
Configure mounts to all controllers and containers. By default the persistence item
will be mounted to /<name_of_the_peristence_item>
.
Example
globalMounts:
- path: /config
readOnly: false
path
Where to mount the volume in the main container. Defaults to /<name_of_the_volume>
readOnly
Specify if the volume should be mounted read-only
subPath
Specifies a sub-path inside the referenced volume instead of its root.
subPathExpr
Use the subPathExpr
field to construct subPath
directory names from downward API environment variables. See the Kubernetes documentation for more information.
advancedMounts
Explicitly configure mounts for specific controllers and containers.
Example
advancedMounts:
main: # (1)!
main: # (2)!
- path: /data/config.yaml
readOnly: true
subPath: config.yaml
second-container: # (3)!
- path: /appdata/config
readOnly: true
second-controller: # (4)!
main: # (5)!
- path: /data/config.yaml
readOnly: false
subPath: config.yaml
- the controller with the "main" identifier
- the container with the "main" identifier
- the container with the "second-container" identifier
- the controller with the "second-controller" identifier
- the container with the "main" identifier
path
Where to mount the volume in the main container. Defaults to /<name_of_the_volume>
readOnly
Specify if the volume should be mounted read-only
subPath
Specifies a sub-path inside the referenced volume instead of its root.
subPathExpr
Use the subPathExpr
field to construct subPath
directory names from downward API environment variables. See the Kubernetes documentation for more information.