简体   繁体   English

azure kubernetes集群的垂直扩展

[英]Vertical scaling of azure kubernetes cluster

I am unable to scale vertical my AKS cluster.我无法垂直扩展我的 AKS 群集。 Currently, I have 3 nodes in my cluster with 2 core and 8 ram, I am trying to upgrade it with 16 code and 64 RAM, how do I do it?目前,我的集群中有 3 个节点,有 2 个核心和 8 个内存,我正在尝试用 16 个代码和 64 个内存升级它,我该怎么做? I tried scaling the VM scale set, on Azure portal it shows it is scaled but when I do "kubectl get nodes -o wide" it still shows the old version.我尝试在 Azure 门户上缩放 VM 规模集,它显示它已缩放,但是当我执行“kubectl get nodes -o wide”时,它仍然显示旧版本。

Any leads will be helpful.任何线索都会有所帮助。 Thanks, Abhishek谢谢, 阿布舍克

Vertical scaling or changing the node pool VM size is not supported.不支持垂直缩放或更改节点池 VM 大小。 You need to create a new node pool and schedule your pods on the new nodes.您需要创建一个新的节点池并在新节点上安排您的 pod。

https://github.com/Azure/AKS/issues/1556#issuecomment-615390245 https://github.com/Azure/AKS/issues/1556#issuecomment-615390245

this UX issues is due to how the VMSS is managed by AKS.此 UX 问题是由于 AKS 如何管理 VMSS。 Since AKS is a managed service, we don't support operations done outside of the AKS API to the infrastructure resources.由于 AKS 是一项托管服务,因此我们不支持在 AKS API 之外对基础结构资源执行的操作。 In this example you are using the VMSS portal to resize, which uses VMSS APIs to resize the resource and as a result has unexpected changes.在此示例中,您使用 VMSS 门户调整大小,该门户使用 VMSS API 调整资源大小,因此会发生意外更改。

AKS nodepools don't support resize in place, so the supported way to do this is to create a new nodepool with a new target and delete the previous one. AKS 节点池不支持就地调整大小,因此支持的方法是创建具有新目标的新节点池并删除前一个。 This needs to be done through the AKS portal UX.这需要通过 AKS 门户 UX 完成。 This maintains the goal state of the AKS node pool, as at the moment the portal is showing the VMSize AKS knows you have because that is what was originally requested.这维护了 AKS 节点池的目标 state,因为目前门户显示 VMSize AKS 知道您拥有,因为这是最初请求的。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM