Now you can have more than 16 persistent disks attached to a Google Compute Engine node that uses a standard instance type. When using Kubernetes (GKE) there is a limit (MaxGCEPDVolumeCount
) which defaults to 16.
I tried changing it by settings KUBE_MAX_PD_VOLS
in kube-env
but it is not working. How should I properly increase KUBE_MAX_PD_VOLS?
Thanks
It's actually not as simple as changing MaxGCEPDVolumeCount
, because the new limits are per-machine-type. Since a cluster can have nodes with different machine types, kubernetes needs support in the scheduler to understand how many disks can be attached on a per-node basis. That support is being worked on and will be available in a future release.