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\"
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