Skip to content

Instantly share code, notes, and snippets.

@gitumarkk
Last active September 15, 2020 03:24
Show Gist options
  • Save gitumarkk/7fcaf56677bfe682423d97f051a01816 to your computer and use it in GitHub Desktop.
Save gitumarkk/7fcaf56677bfe682423d97f051a01816 to your computer and use it in GitHub Desktop.
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: postgres-pvc
labels:
type: local
spec:
storageClassName: manual
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 2Gi
volumeName: postgres-pv
@WillWcchan
Copy link

Running into issues where it says:
Will@Wills-MacBook-Pro visual-option-chain % kubectl get pvc
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
postgres-pvc Pending postgres-pv 0 manual 6s
Will@Wills-MacBook-Pro visual-option-chain % kubectl describe pvc postgres-pvc
Name: postgres-pvc
Namespace: default
StorageClass: manual
Status: Pending
Volume: postgres-pv
Labels: type=local
Annotations:
Finalizers: [kubernetes.io/pvc-protection]
Capacity: 0
Access Modes:
VolumeMode: Filesystem
Mounted By:
Events:
Type Reason Age From Message


Warning VolumeMismatch 12s (x5 over 59s) persistentvolume-controller Cannot bind to requested volume "postgres-pv": incompatible accessMode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment