Skip to content

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