<p>I am trying to add the boot disk size to the node auto-provisioned Kubernetes cluster as follows:</p>
<pre><code>resource &quot;google_container_cluster&quot; &quot;gc-dev-kube-ds0&quot; {
        .
        .
        .

      cluster_autoscaling {
    enabled = true

    resource_limits {
      resource_type = &quot;cpu&quot;
      minimum       = 4
      maximum       = 150
    }

    resource_limits {
      resource_type = &quot;memory&quot;
      minimum       = 4
      maximum       = 600
    }

    resource_limits {
      resource_type = &quot;nvidia-tesla-v100&quot;
      minimum       = 0
      maximum       = 4
    }

  }

  disk_size_gb = 200
}
</code></pre>
<p>but I am getting the following error:</p>
<pre><code>Error: Unsupported argument

  on kubernetes.tf line 65, in resource &quot;google_container_cluster&quot; &quot;gc-dev-kube-ds0&quot;:
  65:   disk_size_gb = 200

An argument named &quot;disk_size_gb&quot; is not expected here.
</code></pre>
<p>Also checked the terraform <a href="https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/container_cluster#cluster_autoscaling" rel="nofollow noreferrer">documentation</a> but nothing is mentioned on this.</p>

AKs
<p>The error is getting because the <a href="https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/container_cluster#disk_size_gb" rel="nofollow noreferrer">disk_size_gb</a> module must be in the node_config block, as the following.</p>
<pre><code>node_config {
      disk_size_gb = 200
}
</code></pre>
<p>The TerraForm documentation about <a href="https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/container_cluster" rel="nofollow noreferrer">google_container_cluster</a> the module needs to be under the block.</p>
<p><a href="https://i.stack.imgur.com/XRZHO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XRZHO.png" alt="enter image description here" /></a></p>
