我们有一个kubernetes集群,我们使用aks-engine对其进行部署,最近我们从VM迁移到VMSS作为节点。但是,当我们使用Helm部署服务时,创建的负载均衡器的后端池不会与在部署过程中创建的虚拟机规模集相关联。我们希望默认情况下将其关联。现在,我们需要手动执行此步骤。我们可以有一种自动执行此操作的方法吗?
这是kubernetes.json文件
{
"apiVersion":"vlabs",
"properties":{
"orchestratorProfile":{
"orchestratorType":"Kubernetes",
"orchestratorRelease":"1.12",
"kubernetesConfig":{
"networkPolicy":"azure",
"useManagedIdentity":true
}
},
"masterProfile":{
"count":1,
"dnsPrefix":"testcluster",
"vmSize":"Standard_D2_v2"
},
"agentPoolProfiles":[
{
"name":"windowspool2",
"count":2,
"vmSize":"Standard_D2_v2",
"availabilityProfile":"VirtualMachineScaleSets",
"osType":"Windows",
"osDiskSizeGB":127
}
],
"windowsProfile":{
"adminUsername":"azureuser",
"adminPassword":"test1234",
"windowsPublisher":"MicrosoftWindowsServer",
"windowsOffer":"WindowsServerSemiAnnual",
"windowsSku":"Datacenter-Core-1803-with-Containers-smalldisk"
},
"linuxProfile":{
"adminUsername":"azureuser",
"ssh":{
"publicKeys":[
{
"keyData":<ssh-key>
}
]
}
},
"servicePrincipalProfile":{
"clientId": <SP-client ID> ,
"secret":<SP-client passowrd>
}
}
}