Install aks-preview
Azure CLI extension
az extension add --name aks-preview
Register the UseCustomizedContainerRuntime
feature
az feature register --name UseCustomizedContainerRuntime --namespace Microsoft.ContainerService
Register the UseCustomizedUbuntuPreview
feature
az feature register --name UseCustomizedUbuntuPreview --namespace Microsoft.ContainerService
az feature list -o table --query "[?contains(name, 'Microsoft.ContainerService/UseCustomizedContainerRuntime')].{Name:name,State:properties.state}"
az feature list -o table --query "[?contains(name, 'Microsoft.ContainerService/UseCustomizedUbuntuPreview')].{Name:name,State:properties.state}"
az provider register --namespace Microsoft.ContainerService
Add the following lines to the cluster creation command
--aks-custom-headers CustomizedUbuntu=aks-ubuntu-1804,ContainerRuntime=containerd