无法将点节点池添加到Azure Kubernetes群集



无法将点节点池添加到Azure Kubernetes Cluster

AWS-CLI

azure-cli                         2.12.0
core                              2.12.0
telemetry                          1.0.6
Extensions:
aks-preview                       0.4.63

遵循Microsoft网站上的说明:https://learn.microsoft.com/en-us/azure/aks/spot-node-pool

运行以下

# Create a resource group in East US
az group create --name myResourceGroup --location westus2
# Create a basic single-node AKS cluster
az aks create 
--resource-group myResourceGroup 
--name myAKSCluster 
--vm-set-type VirtualMachineScaleSets 
--node-count 1 
--generate-ssh-keys 
--load-balancer-sku standard
az aks get-credentials --resource-group myResourceGroup --name myAKSCluster
az aks nodepool add 
--resource-group myResourceGroup 
--cluster-name myAKSCluster 
--name spotnodepool 
--priority Spot 
--spot-max-price -1 
--eviction-policy Delete 
--node-vm-size Standard_D2as_v4 
--node-count 1

收到以下错误:错误代码:

ValidationError: Operation failed with status: 'Bad Request'. Details: Provisioning of resource(s) for Agent Pool spotnodepool failed. Error: {
"code": "InvalidTemplateDeployment",
"message": "The template deployment failed with error: 'The resource with id: '/subscriptions/REDACTED/resourceGroups/MC_myResourceGroup_myAKSCluster_westus2/providers/Microsoft.Compute/virtualMachineScaleSets/aks-REDACTED-vmss' failed validation with message: 'The requested size for resource '/subscriptions/REDACTED/resourceGroups/MC_myResourceGroup_myAKSCluster_westus2/providers/Microsoft.Compute/virtualMachineScaleSets/aks-REDACTED-vmss' is currently not available in location 'westus2' zones '' for subscription 'REDACTED'. Please try another size or deploy to a different location or zones. See https://aka.ms/azureskunotavailable for details.'.'."
}

我尝试过其他AZ地区,useast,uswest2等,但没有运气

如果我运行以下程序,它将工作:

az aks nodepool add 
--resource-group myResourceGroup 
--cluster-name myAKSCluster 
--name mynodepool 
--node-count 1

是否不支持点节点池?它在官方文件中:https://learn.microsoft.com/en-us/cli/azure/ext/aks-preview/aks/nodepool?view=azure-cli最新

我刚刚意识到这不是AKS或Spot问题。这是一个订阅问题。在文档中(https://learn.microsoft.com/en-us/azure/virtual-machines/spot-vms#limitations)它说,只有现收现付订阅才允许使用现货实例。我最近刚刚升级到现收现付模式,但我的offerID仍然停留在";免费试用"-我只需要耐心等待它改变

最新更新