[英]Azure vmss without a load balancer
My requirement is to scale vm instance (linux based custom image) based on CPU usage.我的要求是根据 CPU 使用情况扩展 vm 实例(基于 linux 的自定义映像)。 Tried to follow steps mentioned in VMSS (virtual machine scale sets : https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-linux-autoscale ), but it creates a LB in front which we don't want.
尝试遵循 VMSS 中提到的步骤(虚拟机规模集: https ://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-linux-autoscale),但它在前面创建了一个我们不想要的 LB。 Is it possible to avoid LB in vmss ?
是否可以在 vmss 中避免 LB?
If VMSS without LB is not the option, is there any other way in azure to do this ?如果没有 LB 的 VMSS 不是选项,是否还有其他方法可以做到这一点? I am able to achieve this in AWS (using autoscale group) and GCP (instance group), so trying to get similar functionality in Azure.
我能够在 AWS(使用自动缩放组)和 GCP(实例组)中实现这一点,因此尝试在 Azure 中获得类似的功能。
hp生命值
将空 ID 作为负载均衡器传递
az vmss create -n myname -g mygroup --load-balancer "" --public-ip-per-vm --image UbuntuLTS
在 powershell 中,您需要提供用单引号括起来的双引号:-- --load-balancer '""'
az vmss -n myName -g myGroup --load-balancer '""' --image UbuntuLTS
Though a load balancer is created when you create a VM scale set in the portal, other modes supporting external connectivity to scale sets include:虽然在门户中创建 VM 规模集时会创建负载均衡器,但支持外部连接到规模集的其他模式包括:
Create a separate VM with a public IP address in the same VNET as the scale set which can route connections to the scale set VMs (also known as a jump box).在与规模集相同的 VNET 中创建一个具有公共 IP 地址的单独 VM,它可以将连接路由到规模集 VM(也称为跳转框)。 Eg https://github.com/Azure/azure-quickstart-templates/tree/master/201-vmss-windows-jumpbox or https://github.com/Azure/azure-quickstart-templates/tree/master/201-vmss-linux-jumpbox
例如https://github.com/Azure/azure-quickstart-templates/tree/master/201-vmss-windows-jumpbox或https://github.com/Azure/azure-quickstart-templates/tree/master/201 -vmss-linux-jumpbox
Assign a public IP address to each VM in the scale set.为规模集中的每个 VM 分配一个公共 IP 地址。 This feature is currently in limited preview.
此功能目前处于有限预览中。 See here for more details: https://github.com/gbowerman/azure-myriad/tree/master/publicip-dns
有关更多详细信息,请参见此处: https : //github.com/gbowerman/azure-myriad/tree/master/publicip-dns
Public IP per VM in a scale set is not supported today but is on the roadmap.目前不支持规模集中每个 VM 的公共 IP,但在路线图中。 If you submit a support request (eg from the question mark in the top-right of the azure portal), we can keep you informed on the timeline :).
如果您提交了支持请求(例如从 azure 门户右上角的问号),我们会及时通知您时间线:)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.