Created
August 24, 2020 13:59
-
-
Save sombrafam/a9d87d66e79693cf0251ff940ec95b01 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
ubuntu@sombrafam-bastion:~/stsstack-bundles/kubernetes$ kubectl create -f - <<EOY | |
kind: PersistentVolumeClaim | |
apiVersion: v1 | |
metadata: | |
name: testclaim$(date +%s) | |
spec: | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: | |
storage: 100Mi | |
storageClassName: vmwarelocal | |
EOY | |
persistentvolumeclaim/testclaim1598277212 created | |
ubuntu@sombrafam-bastion:~/stsstack-bundles/kubernetes$ kc get pvc | |
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE | |
testclaim1598277212 Pending vmwarelocal 8s | |
ubuntu@sombrafam-bastion:~/stsstack-bundles/kubernetes$ kc describe pvc testclaim1598277212 | |
Name: testclaim1598277212 | |
Namespace: default | |
StorageClass: vmwarelocal | |
Status: Pending | |
Volume: | |
Labels: <none> | |
Annotations: volume.beta.kubernetes.io/storage-provisioner: kubernetes.io/vsphere-volume | |
Finalizers: [kubernetes.io/pvc-protection] | |
Capacity: | |
Access Modes: | |
VolumeMode: Filesystem | |
Mounted By: <none> | |
Events: | |
Type Reason Age From Message | |
---- ------ ---- ---- ------- | |
Warning ProvisioningFailed 80s (x9 over 5m1s) persistentvolume-controller Failed to provision volume with StorageClass "vmwarelocal": No VM found |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment