ryanlraines
ryanlraines

Reputation: 1

Azure ACS - Delete Load Balancer?

I deployed a swarm ACS and a Load Balancer was auto deployed also.

I'm using an Application Gateway for SSL offloading and want to point it at my swarm agents.

However, since the swarm agents are configured as the backend pool for the Load Balancer, I can't also make the swarm agents a backend pool for the Application Gateway.

I don't need/want the Load Balancer, but I can't delete it since it has a backend pool associated with is.

This is the same story for GUI or CLI deployed ACS'.

I asked this same question over at Microsoft, but they eventually directed me here.

Thoughts?

Thanks for reading.

Upvotes: 0

Views: 993

Answers (1)

A Howe
A Howe

Reputation: 112

There are two solutions. The second solution is better since you can deploy a modern swarm mode cluster:

  1. For ACS deployed swarm cluster, in the following order make the following modifications:

    1. remove the loadBalancerBackendAddressPools relation ship in the VMSS object
    2. remove the loadBalancer
    3. remove the public ip associated with the loadBalancer.
  2. Use ACS-Engine, https://github.com/Azure/acs-engine, to deploy a cluster without a load balancer using the model such as the following:

    {
      "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": ""
              }
            ]
          }
        }
      }
    }
    

Upvotes: 0

Related Questions