KubernetesVolumeSpec¶
KubernetesVolumeSpec is a Kubernetes volume specification:
- Volume Name
- Mount Path
- Mount SubPath (default: empty)
-
readOnlyflag (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.pathconfiguration property)
KubernetesHostPathVolumeConf is used when:
MountVolumesFeatureStepis requested to constructVolumes (that creates a hostPath volume for the givenhostPathvolume source path and an empty type)
KubernetesNFSVolumeConf¶
pathserver
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:
MountVolumesFeatureStepis requested to constructVolumes (that creates a PersistentVolumeClaim for the givenclaimName)