Interface PersistentVolumeProps

    • Method Detail

      • getAccessModes

        @Stability(Stable)
        @Nullable
        default List<PersistentVolumeAccessMode> getAccessModes()
        Contains all ways the volume can be mounted.

        Default: - No access modes.

      • getClaim

        @Stability(Stable)
        @Nullable
        default IPersistentVolumeClaim getClaim()
        Part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.

        Expected to be non-nil when bound.

        Default: - Not bound to a specific claim.

      • getMountOptions

        @Stability(Stable)
        @Nullable
        default List<String> getMountOptions()
        A list of mount options, e.g. ["ro", "soft"]. Not validated - mount will simply fail if one is invalid.

        Default: - No options.

      • getReclaimPolicy

        @Stability(Stable)
        @Nullable
        default PersistentVolumeReclaimPolicy getReclaimPolicy()
        When a user is done with their volume, they can delete the PVC objects from the API that allows reclamation of the resource.

        The reclaim policy tells the cluster what to do with the volume after it has been released of its claim.

        Default: PersistentVolumeReclaimPolicy.RETAIN

      • getStorage

        @Stability(Stable)
        @Nullable
        default org.cdk8s.Size getStorage()
        What is the storage capacity of this volume.

        Default: - No specified.

      • getStorageClassName

        @Stability(Stable)
        @Nullable
        default String getStorageClassName()
        Name of StorageClass to which this persistent volume belongs.

        Default: - Volume does not belong to any storage class.

      • getVolumeMode

        @Stability(Stable)
        @Nullable
        default PersistentVolumeMode getVolumeMode()
        Defines what type of volume is required by the claim.

        Default: VolumeMode.FILE_SYSTEM