Attach block storage to droplet.
50G for starters
sudo mkfs.ext4 -F /dev/disk/by-id/ sudo mkdir -p /mnt/; sudo mount -o discard,defaults /dev/disk/by-id/ /mnt/; echo /dev/disk/by-id/ /mnt/ ext4 defaults,nofail,discard 0 0 | sudo tee -a /etc/fstab
kind: PersistentVolume
apiVersion: v1
metadata:
name: pv-01
labels:
type: local
spec:
capacity:
storage: 10Gi
accessModes:
- ReadWriteOnce
hostPath:
path: /mnt/volume-sgp1-01/pv-01
---
kind: PersistentVolume
apiVersion: v1
metadata:
name: pv-02
labels:
type: local
spec:
capacity:
storage: 10Gi
accessModes:
- ReadWriteOnce
hostPath:
path: /mnt/<mounted-path>/pv-02
---
kind: PersistentVolume
apiVersion: v1
metadata:
name: pv-03
labels:
type: local
spec:
capacity:
storage: 10Gi
accessModes:
- ReadWriteOnce
hostPath:
path: /mnt/<mounted-path>/pv-03
---
kind: PersistentVolume
apiVersion: v1
metadata:
name: pv-04
labels:
type: local
spec:
capacity:
storage: 10Gi
accessModes:
- ReadWriteOnce
hostPath:
path: /mnt/<mounted-path>/pv-04
---
kind: PersistentVolume
apiVersion: v1
metadata:
name: pv-05
labels:
type: local
spec:
capacity:
storage: 10Gi
accessModes:
- ReadWriteOnce
hostPath:
path: /mnt/<mounted-path>/pv-05