Gluttony-Cluster/docs/technical/nfs-storage.md
2024-11-03 16:24:17 -05:00

556 B

NFS Storage

You will want to make NFS based PV/PVC. Here is a sample one just in case.

apiVersion: v1
kind: PersistentVolume
metadata:
  name: nfs-pv
  namespace: my-namespace
spec:
  capacity:
    storage: 20Gi
  accessModes:
    - ReadWriteMany
  nfs:
    path: /path/to/your/nfs/share
    server: <your-nfs-server-ip>
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: nfs-pvc
  namespace: my-namespace
spec:
  accessModes:
    - ReadWriteMany
  storageClassName: ""
  resources:
    requests:
      storage: 20Gi