Last active
September 15, 2020 03:24
-
-
Save gitumarkk/7fcaf56677bfe682423d97f051a01816 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kind: PersistentVolumeClaim | |
apiVersion: v1 | |
metadata: | |
name: postgres-pvc | |
labels: | |
type: local | |
spec: | |
storageClassName: manual | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: | |
storage: 2Gi | |
volumeName: postgres-pv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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