-
Notifications
You must be signed in to change notification settings - Fork 100
Description
We would like to use the kubernetes emptyDir volumes as the sas work location, and in order to utilise the local ephemeral ssd's on the compute nodes we need to specify kubelet_disk_type=Temporary
https://registry.terraform.io/providers/hashicorp/azurerm/3.86.0/docs/resources/kubernetes_cluster_node_pool#kubelet_disk_type
This will put emptyDir on the temporary storage on the node, see https://learn.microsoft.com/en-us/samples/azure-samples/aks-ephemeral-os-disk/aks-ephemeral-os-disk/
When setting the value of [kubeletDiskType](https://github.com/Azure/azure-rest-api-specs/blob/5582a35deb1bfa4aa22bac8f1d51b7934ead94ac/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2021-02-01/managedClusters.json#L3846-L3857) equal to Temporary, the operating system is hosted by the OS disk, no matter if the OS disk is managed or ephemeral, while container images, emptyDir volumes, and container logs are hosted by the temporary storage.
We are not allowed to use hostPath volumes. The requested property is available in the azurerm version used in this project, we just need the variable surfaced.