Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 1.22 KB

File metadata and controls

23 lines (20 loc) · 1.22 KB

Terraform module azure-docker-scaleset

Terraform module to deploy a highly available linux scaleset running stateless docker images using docker-compose, placed behind an Azure Loadbalancer. Input parameters are the docker-compose file which should be used as well as, optionally, configuration files to mount into the containers.

The highly-available setup includes:

  1. A zone-redundant scaleset behind a zone-redundant loadbalancer
  2. Healthchecks of the containers
  3. Automatic OS-upgrades
  4. Automatic instance repair
  5. Autoscaling based on CPU metric

Prerequisites

  1. Resource Groups for the loadbalancer and the scaleset. Can be the same.
  2. A VNET to place both the loadbalancer and the scaleset.
  3. Subnets for the loadbalancer and the scaleset. Can be the same.
  4. Connectivity on the configured routes between the used subnets. Both NSGs and routes have to be configured, if applicable.
  5. A Public SSH key for the scaleset admin user.
  6. Optional: If you choose to opt-in for boot diagnostics for the scaleset, an appropriate storage account is needed.

Example usage

An exemplary workspace calling this module can be found here