Azure ACS - 删除负载均衡器?

时间:2017-04-07 14:30:48

标签: azure acs

我部署了一个群体ACS,并且还自动部署了负载均衡器

我正在使用 Application Gateway 进行SSL卸载,并希望将其指向我的swarm代理。

但是,由于swarm代理被配置为Load Balancer的后端池,因此我不能使swarm代理成为 Application Gateway 的后端池。

我不需要/想要 Load Balancer ,但我无法删除它,因为它有一个与is关联的后端池。

这与GUI或CLI部署的ACS'相同。

我在Microsoft问了同样的问题,但他们最终指示我。

思考?

感谢阅读。

1 个答案:

答案 0 :(得分:0)

有两种解决方案。第二种解决方案更好,因为您可以部署现代群模式群集:

  1. 对于ACS部署的群集群,按以下顺序进行以下修改:

    1. 删除VMSS对象中的loadBalancerBackendAddressPools关系
    2. 删除loadBalancer
    3. 删除与loadBalancer关联的公共IP。
  2. 使用ACS-Engine https://github.com/Azure/acs-engine,使用以下模型在没有负载均衡器的情况下部署群集:

    {
      "apiVersion": "vlabs",
      "properties": {
        "orchestratorProfile": {
          "orchestratorType": "SwarmMode"
        },
        "masterProfile": {
          "count": 3,
          "dnsPrefix": "",
          "vmSize": "Standard_D2_v2"
        },
        "agentPoolProfiles": [
          {
            "name": "agentpublic",
            "count": 3,
            "vmSize": "Standard_D2_v2"
          }
        ],
        "linuxProfile": {
          "adminUsername": "azureuser",
          "ssh": {
            "publicKeys": [
              {
                "keyData": ""
              }
            ]
          }
        }
      }
    }