Kubernetes Deep Dive

Sign Up Free or Log In to participate!

GCP throwing error for mounting volume in the POD

I have create PV and PVC as described in the lecture from Git: https://github.com/ACloudGuru-Resources/Course_Kubernetes_Deep_Dive_NP/tree/master/lesson-storage

After fixing issues with "gke-volpod.yml" I deployed this also, but getting following error:

Cannot schedule pods: node(s) had volume node affinity conflict

What can be the issue?

1 Answers

I can’t access the link you provided and am not sure what modifications you had to make to the YAML, but the first thing I would check is that the volume resides in the same zone as the node where the pod is being scheduled.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?