Closed jaboatman closed 5 years ago
We were just looking at this today. Can you remove volumeBindingMode: "WaitForFirstConsumer"
from manifests/gke-storage.yml
and apply it again?
Thanks for the quick response - Yes that seems to have worked, the cluster was able to start on 1.10.7-gke.6
.
Is there any downside to not having volumeBindingMode: "WaitForFirstConsumer"
?
I believe the setting is to avoid prematurely creating volumes. But I think it isn't needed here and we are going to remove it.
From the Kubernetes documentation:
For storage backends that are topology-constrained and not globally accessible from all Nodes in the cluster, PersistentVolumes will be bound or provisioned without knowledge of the Pod’s scheduling requirements. This may result in unschedulable Pods.
But the GCE pd we are using here is not topology-constrained, we are not using the zonal or regional GCE pd which needs topology awareness scheduling and WaitForFirstConsumer
binding mode. If we use this binding mode, it may get stuck due to deadlock when scheduling (pod waits pv and pv waits pod).
I'll send a pr to fix this.
Following through the
google-kubernetes-tutorial
on a Kubernetes cluster running version1.10.7-gke.6
, everything works fine until the point of deploying the cluster:Then,
It hangs like this indefinitely waiting for the PVC to start. The
pd-demo-pd-0
PVC is stuck in a "Pending" state with the message "waiting for first consumer to be created before binding".This may be an issue with kubernetes itself.