Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Next we create a "large" PV (without exaggerating), of type hostPath, based on the default SC

Code Block
languageyml
titleDefault PV
collapsetrue
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

...