KubernetesVolumeSpec¶
KubernetesVolumeSpec
is a Kubernetes volume specification:
- Volume Name
- Mount Path
- Mount SubPath (default: empty)
-
readOnly
flag (default:false
) - KubernetesVolumeSpecificConf
KubernetesVolumeSpec
is part of KubernetesConf abstraction.
KubernetesVolumeSpec
is created using KubernetesVolumeUtils utility.
KubernetesVolumeSpecificConf¶
KubernetesVolumeSpecificConf
complements KubernetesVolumeSpec
with a volume type-specific configuration.
KubernetesVolumeSpecificConf
is created using KubernetesVolumeUtils utility.
Sealed Trait
KubernetesVolumeSpecificConf
is a Scala sealed trait which means that all of the implementations are in the same compilation unit (a single file).
KubernetesEmptyDirVolumeConf¶
- Optional
medium
- Optional
sizeLimit
KubernetesHostPathVolumeConf¶
hostPath
(based onhostPath.[volumeName].options.path
configuration property)
KubernetesHostPathVolumeConf
is used when:
MountVolumesFeatureStep
is requested to constructVolumes (that creates a hostPath volume for the givenhostPath
volume source path and an empty type)
KubernetesNFSVolumeConf¶
path
server
KubernetesPVCVolumeConf¶
KubernetesPVCVolumeConf
is a KubernetesVolumeSpecificConf with the following:
claimName
- Optional
storageClass
(default: undefined) - Optional
size
(default: undefined)
KubernetesPVCVolumeConf
is created (using KubernetesVolumeUtils utility) based on configuration properties with persistentVolumeClaim
volume type prefix.
Attribute | Configuration Property |
---|---|
claimName | persistentVolumeClaim.[volumeName].options.claimName |
storageClass | persistentVolumeClaim.[volumeName].options.storageClass |
size | persistentVolumeClaim.[volumeName].options.sizeLimit |
KubernetesPVCVolumeConf
is used when:
MountVolumesFeatureStep
is requested to constructVolumes (that creates a PersistentVolumeClaim for the givenclaimName
)