errgo | Error tracing and annotation | Architecture library
kandi X-RAY | errgo Summary
kandi X-RAY | errgo Summary
Error tracing and annotation.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of errgo
errgo Key Features
errgo Examples and Code Snippets
Community Discussions
Trending Discussions on errgo
QUESTION
While using the go-client API after I use the api.PersistentVolumeClaims(namespace).Create(createOpts)
call the PersistentVolumeClaim appears as a resource but stays in the Pending state. I do not see any events when using kubectl describe pvc
, I also don't see any Volumes being created etc.
ANSWER
Answered 2019-Mar-27 at 16:31What you are doing in the code looks correct. However, it looks like that your PVC can't find a matching PV to bind together.
It looks like you are using a hostPath
PV (with a storage class) that doesn't support dynamic provisioning. Also, documented here.
So most likely you will have to create a hostPath PV so that your PVC can bind to it. The volume has to be equal or greater in size as what you are requesting in your PVC.
Another option is to use a Local volume that supports dynamic provisioning which is different from hostPath.
You can debug the dynamic provisioning and binding of the PVC/PV by looking at the kube-controller-manager logs on your K8s control plane leader.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install errgo
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page