...
Next we create a "large" PV (without exaggerating), of type hostPath, based on the default SC
| Code Block | ||||||
|---|---|---|---|---|---|---|
| ||||||
apiVersion: v1
kind: PersistentVolume
metadata:
name: local-pv
labels:
type: local
spec:
storageClassName: local-storage # Same as the name of the default SC created
capacity:
storage: 10Gi
accessModes:
- ReadWriteOnce
hostPath:
path: "/mnt/data" # The "data" folder, if it does not exist, will be created automatically on the node where the NFS server pod is up and running. |
Create and Initialize NFS Server
...