LocalVolumeSourceV1
Class sealed net10.0
Represents a local volume source in Kubernetes. This type is used to configure a PersistentVolume that is backed by local storage.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class LocalVolumeSourceV1{ // ...}Remarks
Section titled Remarks Local storage can only be used as a PersistentVolume when the nodeAffinity is also set. The local volume does not support all Kubernetes volume features, such as dynamic provisioning. Local volumes can be beneficial for applications that require high-performance storage and do not require replication.
Constructors1
Section titled ConstructorsProperties2
Section titled PropertiesFsTypeget; setstring Gets or sets the filesystem type to be mounted. Examples of valid values include "ext4", "xfs", "ntfs", among others. If not specified, the default filesystem type for the operating system will be used.
Pathget; setstring Gets or sets the path to the local volume on the host. This value is required and should specify the file system or directory to be used by the volume.