<p>Is it possible by terraform provision AKS cluster with agents that will contains additional storage attached in each VM?</p>

<p>Currently PV/PVC based on SMB protocol is a bit of joke and my plan is to use rook or glusterfs, but then I like to provision my cluster by terraform where each of my node will handle also proper amount of storage, instead creating separate regular nodes just to handle them.</p>

<p>Best Regards.</p>

MrHetii
<p>I'm afraid you cannot achieve that in AKS through Terraform. The AKS is a managed service so that you cannot do many personal actions in it.</p>

<p>According to your requirements, I would suggest you use the <a href="https://github.com/Azure/aks-engine" rel="nofollow noreferrer">aks-engine</a> which you can manage the cluster yourself, even the master node. You can use the property <code>diskSizesGB</code> in the <code>agentPoolProfiles</code>. The description here:</p>

<blockquote>
  <p><strong>Describes an array of up to 4 attached disk sizes. Valid disk size values are between 1 and 1024.</strong></p>
</blockquote>

<p>More details in <a href="https://github.com/Azure/aks-engine/blob/master/docs/topics/clusterdefinitions.md" rel="nofollow noreferrer">clusterdefinitions</a>. You can also take a look at the example for the <code>diskSizesGB</code> <a href="https://github.com/Azure/aks-engine/blob/master/examples/disks-managed/kubernetes-preAttachedDisks-vmas.json" rel="nofollow noreferrer">here</a>.</p>
