Skip to content

DigitalOcean.Network File Storage reference

Source: packages/digitalocean/src/Nfs.ts

A DigitalOcean managed NFS share: a network file system mounted by droplets and Kubernetes pods in its VPCs. Growing sizeGib and changing vpcIds update in place; name, region and shrinking replace the share, which loses its data.

const network = yield* DigitalOcean.Vpc("network", { region: "atl1" });
const share = yield* DigitalOcean.Nfs("files", {
region: "atl1",
sizeGib: 50,
vpcIds: [network.vpcId],
});
// mount -t nfs ${share.host}:${share.mountPath} /mnt/files