简体   繁体   English

如何更改 Azure 容器服务中代理池的 VM 大小?

[英]How do I change the VM size of the agent pool in an Azure container service?

I have deployed an Azure Container Service a month ago and it works perfectly.我一个月前部署了一个 Azure 容器服务,它运行良好。 However when I tried to increase the VM count in the agent pool then Azure returned an "operation not allowed" error all the time.但是,当我尝试增加代理池中的 VM 计数时,Azure 始终返回“不允许操作”错误。

This is the error returns -这是错误返回 -

{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details.","details":[{"code":"Conflict","message":"{\\r\\n \\"error\\": {\\r\\n \\"code\\": \\"OperationNotAllowed\\",\\r\\n \\"target\\": \\"vmSize\\",\\r\\n \\" message\\": \\"Unable to perform Operation 'Update VM' on the VM because the requested size Standard_D2_v2 is not available in the cluster where the availability set is currently allocated . {"code":"DeploymentFailed","message":"至少有一个资源部署操作失败。请列出部署操作以了解详细信息。请参阅https://aka.ms/arm-debug了解使用详情。","details ":[{"code":"Conflict","message":"{\\r\\n \\"error\\": {\\r\\n \\"code\\": \\"OperationNotAllowed\\",\\r\\n \\ "target\\": \\"vmSize\\",\\r\\n \\" message\\": \\"无法在 VM 上执行“更新 VM”操作,因为请求的大小 Standard_D2_v2 在可用性集所在的集群中不可用当前分配 The available sizes are: Basic_A0,Basic_A1,Basic_A2,Basic_A3,Basic_A4,Standard_A0,Standard_A1,Standard_A2,Standard_A3,Standard_A4,Standard_A5,Standard_A6,Standard_A7,Standard_D1,Standard_D2,Standard_D3,Standard_D4,Standard_D11,Standard_D12,Standard_D13,Standard_D14,Standard_A1_v2,Standard_A2_v2,Standard_A4_v2,Standard_A8_v2,Standard_A2m_v2,Standard_A4m_v2,Standard_A8m_v2.可用的尺寸为:Basic_A0,Basic_A1,Basic_A2,Basic_A3,Basic_A4,Standard_A0,Standard_A1,Standard_A2,Standard_A3,Standard_A4,Standard_A5,Standard_A6,Standard_A7,Standard_D1,Standard_D2,Standard_D3,Standard_D4,Standard_D11,Standard_D12,Standard_D13,Standard_D14,Standard_A1_v2,Standard_A2_v2 ,Standard_A4_v2,Standard_A8_v2,Standard_A2m_v2,Standard_A4m_v2,Standard_A8m_v2。 Read more on VM resizing strategy at https://aka.ms/azure-resizevm .\\"\\r\\n }\\r\\n}"}]}https://aka.ms/azure-resizevm阅读有关 VM 大小调整策略的更多信息。\\"\\r\\n }\\r\\n}"}]}

So according to the above error, it tells me to update the VM size of the agent pool.所以根据上面的错误,它告诉我更新代理池的VM大小。 Is there a solution for this?有解决方案吗?

在此处输入图片说明

在此处输入图片说明

It's a bug on the service side.这是服务端的一个错误。 We changed the default Master VM size and that's causing a problem in scaling the existing cluster whose default VM size may be Standard_D2 .我们更改了默认的主虚拟机大小,这导致在扩展现有集群时出现问题,其默认虚拟机大小可能是Standard_D2 We are rolling out the fix.我们正在推出修复程序。 It should be done later this week.这应该在本周晚些时候完成。

BTW, in general you can change agent count in ACS, but you cannot change the VM size.顺便说一句,通常您可以更改 ACS 中的代理数量,但不能更改 VM 大小。

I think it's because of the core limit on your subscription.我认为这是因为您的订阅有核心限制。

Please check the limit and count for your subscription.请检查订阅的限制和计数。 You can request to increase the number of cores for the subscription.您可以请求增加订阅的核心数。

Refer to Azure subscription and service limits, quotas, and constraints .请参阅Azure 订阅和服务限制、配额和约束 I hope that might be the issue here.我希望这可能是这里的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Azure容器服务Kubernetes:如何更改VM大小? - Azure Container Service Kubernetes: How to Change VM Size? 如何在Azure批处理池中添加现有VM? - How do I add existing VM in Azure Batch pool? 如何将文件从 Azure 存储复制到管道中代理池中的 VM? - How to copy a file from Azure Storage to a VM in agent pool in a pipeline? 如何更改Azure云服务辅助角色的大小? - How do I change the size of an Azure Cloud Service Worker Role? 如何将 azure vm 网络接口连接到 azure 负载均衡器地址池? - How do i connect an azure vm network interface into an azure load balancer address pool? 如何使用服务帐户凭据在 Linux 上运行 Azure 代理? - How do I run the Azure Agent on Linux with Service Account credentials? 如何将Azure VM与云服务相关联? - How do I associate Azure VM with a cloud service? 如何更改 Azure 中 MSSQL 弹性池中特定数据库的最大池大小? - How can I change Max Pool Size for particular database in MSSQL elastic pool in Azure? 如何将用户名和密码代理添加到从Azure中的磁盘创建的VM - How do I add username and password agent to a VM created from disk in azure 如何将Azure VM代理WindowsAzure文件夹移动到其他驱动器 - How do I move the Azure VM Agent WindowsAzure folder to a different drive
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM