<p>Is it possible to attach ~30 persistent disks to single k8s node (e.g. n1-standard-4)?</p>

<p>According to the documentation 2-4 core node can support up to 64 attached disks in Beta: <a href="https://cloud.google.com/compute/docs/disks/#increased_persistent_disk_limits" rel="nofollow noreferrer">Link</a>.</p>

<p>Is it supported by GKE? Is there any limit in GKE Kubernetes?</p>

asktomsk
<p>GKE has the same limitation as vanilla Kubernetes on GCP per se. The Kubernetes limits for the largest public cloud providers are documented <a href="https://kubernetes.io/docs/concepts/storage/storage-limits/#kubernetes-default-limits" rel="nofollow noreferrer">here</a> </p>

<p>You can also change those limits using the <code>KUBE_MAX_PD_VOLS</code> on the <code>kube-scheduler</code> (After restarting). Unfortunately, you won't be able to change this on GKE yet, because GKE doesn't give you access to the master(s) configuration yet.</p>

<p>Also documented <a href="https://kubernetes.io/docs/concepts/storage/storage-limits/#dynamic-volume-limits" rel="nofollow noreferrer">here</a> is Dynamic Volume Limits introduced in Kubernetes 1.11 and currently in Beta.</p>

<p>I believe you self-answered your first question, the <code>n1-standard-4</code> VM has 4 vCPUs and per the <a href="https://cloud.google.com/compute/docs/disks/#increased_persistent_disk_limits" rel="nofollow noreferrer">link</a> that you provided you can attach up to 64 disks. So yes, you should be able to attach 30 persistent disks, a PVC/PV in the GCE storage class maps to GCP VM disk.</p>
