Managed NFS
Network file storage for shared volumes across containers and Kubernetes pods.
Features
- NFSv4 protocol
- Shared storage across multiple pods
- Automatic snapshots
- Resizable volumes
- ReadWriteMany (RWX) access mode
- Cross-zone replication available
- POSIX-compliant
Plans
| Plan | Storage | IOPS | Price |
|---|---|---|---|
| Starter | 10GB | 1K | $9/mo |
| Standard | 100GB | 5K | $36/mo |
| Pro | 1TB | 20K | $180/mo |
Additional storage: $0.10/GB/mo
Quick Start
# Create NFS volume
szc nfs create my-volume --size 50 --plan standard
# Get mount information
szc nfs info my-volume
Kubernetes Integration
Mount NFS volumes in your pods:
apiVersion: v1
kind: PersistentVolume
metadata:
name: my-nfs-pv
spec:
capacity:
storage: 50Gi
accessModes:
- ReadWriteMany
nfs:
server: nfs.sparbz.cloud
path: /volumes/my-volume
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: my-nfs-pvc
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 50Gi
volumeName: my-nfs-pv
Use in a deployment:
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-app
spec:
template:
spec:
containers:
- name: app
volumeMounts:
- name: shared-data
mountPath: /data
volumes:
- name: shared-data
persistentVolumeClaim:
claimName: my-nfs-pvc
Snapshots
Create and restore snapshots:
# Create snapshot
szc nfs snapshot create my-volume --name backup-1
# List snapshots
szc nfs snapshot list my-volume
# Restore from snapshot
szc nfs snapshot restore my-volume backup-1
Resizing
Expand your volume without downtime:
# Resize volume
szc nfs resize my-volume --size 100