The error you're encountering, (OperationNotAllowed) Code="OperationNotAllowed" Message="The 'Placement' option override for the ephemeral OS disk is not supported"
, indicates that there is a problem with the configuration of the VM size and the usage of ephemeral OS disks in your Azure Kubernetes Service (AKS) node pool.
Background
Ephemeral OS disks are ideal for stateless workloads where you need fast, temporary storage. However, not all VM sizes support ephemeral OS disks with certain placement options.
Key Points
- Ephemeral OS Disks: These disks are stored on the local VM storage, providing lower read/write latency but not supported by all VM sizes in all configurations.
- VM Size Compatibility: Not all VM sizes support ephemeral OS disks with all placement options. This seems to be the root cause of your issue.
Solutions
- Check VM Size Compatibility
- Ensure that the VM size
Standard_NC6s_v3
supports ephemeral OS disks with your desired placement option. You can refer to the official Azure VM documentation for compatibility details.
- Ensure that the VM size
- Upgrade VM Size
- If
Standard_NC6s_v3
does not support ephemeral OS disks with the desired placement, you might need to switch to a different VM size that does. For instance,Standard_NC24ads_A100_v4
seems to work as per your description.
- If
Steps to Troubleshoot and Resolve
Step 1: Verify Ephemeral OS Disk Support
- Check Current Configuration:
- Use the Azure CLI to check the current VM size and ephemeral OS disk configuration:
az aks nodepool show --resource-group <ResourceGroupName> --cluster-name <AKSClusterName> --name <NodePoolName>
- Use the Azure CLI to check the current VM size and ephemeral OS disk configuration:
- Verify Ephemeral OS Disk Support:
- Refer to the official documentation to verify if
Standard_NC6s_v3
supports ephemeral OS disks with your desired placement option.
- Refer to the official documentation to verify if
Step 2: Upgrade VM Size
- Change VM Size:
- If
Standard_NC6s_v3
is not supported, upgrade the VM size to a supported one:az aks nodepool update \ --resource-group <ResourceGroupName> \ --cluster-name <AKSClusterName> \ --name <NodePoolName> \ --node-vm-size Standard_NC24ads_A100_v4
- If
- Validate the Upgrade:
- Ensure the node pool upgrade is successful and verify the configuration:
az aks nodepool show --resource-group <ResourceGroupName> --cluster-name <AKSClusterName> --name <NodePoolName>
- Ensure the node pool upgrade is successful and verify the configuration:
Step 3: Reconfigure Node Pool
- Stop and Start Node Pool:
- If you still encounter issues, try stopping and starting the node pool to reset the configuration:
az aks nodepool stop --resource-group <ResourceGroupName> --cluster-name <AKSClusterName> --name <NodePoolName> az aks nodepool start --resource-group <ResourceGroupName> --cluster-name <AKSClusterName> --name <NodePoolName>
- If you still encounter issues, try stopping and starting the node pool to reset the configuration:
Final Considerations
- Backup and Downtime: Ensure you have backups and are aware of possible downtime during the upgrade process.
- Review Documentation: Always refer to the latest Azure documentation for any updates on VM sizes and ephemeral OS disk support.
- Azure Support: If the issue persists, consider reaching out to Azure Support for personalized assistance.
By following these steps, you should be able to resolve the issue and successfully upgrade your node pool in AKS.