Container-VM Image with GPD Volumes fails with “Failed to get GCE Cloud Provider. plugin.host.GetCloudProvider returned instead”

后端 未结 1 1472
春和景丽
春和景丽 2021-01-26 01:44

I currently try to switch from the \"Container-Optimized Google Compute Engine Images\" (https://cloud.google.com/compute/docs/containers/container_vms) to the \"Container-VM\"

相关标签:
1条回答
  • 2021-01-26 02:06

    This happens only when kubelet is run without the --cloud-provider=gce flag. The problem, unless is something different, is dependant on how GCP is launching Container-VMs.

    Please contact with google cloud platform guys.

    Note if this happens to you when using GCE: Add --cloud-provider=gce flag to kubelet in all your workers. This only applies to 1.2 cluster versions because, if i'm not wrong, there is an ongoing attach/detach design targeted for 1.3 clusters which will move this business logic out of kubelet.

    In case someone is interested in the attach/detach redesign here it is its corresponding github issue: https://github.com/kubernetes/kubernetes/issues/20262

    0 讨论(0)
提交回复
热议问题