Skip to content

Instantly share code, notes, and snippets.

@vigneshragupathy
Created November 23, 2019 12:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vigneshragupathy/b0fdde697229f150740a079b77458d64 to your computer and use it in GitHub Desktop.
Save vigneshragupathy/b0fdde697229f150740a079b77458d64 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: PersistentVolume
metadata:
name: vikki-pv-volume
spec:
capacity:
storage: 1Gi
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Delete
storageClassName: local-storage
local:
path: /pvdir
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- kubernetes2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment