Unable to attach or mount volumes: unmounted volumes=[code], unattached volumes=[code kube-api-access-fkxm9]: timed out waiting for the condition
Attach failed for volume “pvc” : Attach timeout for volume
Error from server (BadRequest): container “nginx” in pod “nginx-8589fdb7c-ktjcg” is waiting to start: ContainerCreating
Using this same content : https://www.digitalocean.com/community/tutorials/how-to-deploy-a-php-application-with-kubernetes-on-ubuntu-16-04
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Click below to sign up and get $100 of credit to try our products over 60 days!
Hello,
Is this on a Managed Kubernetes cluster? If so, you would need to use the following configuration:
For more information on this, you could take a look at the official documentation here:
https://docs.digitalocean.com/products/kubernetes/how-to/add-volumes/
Best, Bobby