Skip to content

Instantly share code, notes, and snippets.

@farhadnowzari
Created July 15, 2023 19:21
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 farhadnowzari/e3924ba218a58aec266a518cff5b6d7f to your computer and use it in GitHub Desktop.
Save farhadnowzari/e3924ba218a58aec266a518cff5b6d7f to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: PersistentVolume
metadata:
name: pgsql-pv-yt
spec:
capacity:
storage: 5Gi
volumeMode: Filesystem
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Recycle
storageClassName: local-storage
local:
path: "<yout-path>"
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- <your-node-hostname>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment