[英]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.