Create a Docker Swarm cluster with Terraform and Ansible
summary
Terraform provisions VPCs and instances, Ansible installs Docker, enables experimental features and bootstraps Swarm tokens, and the result is a working multicloud Swarm: 18 servers across AWS Azure GCP with three managers and three workers per provider. Terraform uses reusable modules (VPCs, subnets, bastion), some Azure/GCP portal steps stay manual, and Ansible splits manager/worker roles to join clusters. A Traefik stack runs on managers as load balancer and Traefik runs only on managers, and HTTP requests route to containers across clouds.
AI-written summary · about
chapters (16)
- 0:00Introduction and motivation
- 7:05What is Infrastructure as Code
- 10:21Terraform overview and setup
- 13:13Creating cloud infrastructure
- 18:40Terraform demo and results
- 19:03Docker Swarm basics
- 22:57Docker Compose and stacks
- 25:52Traefik as load balancer
- 26:14Ansible for configuration
- 28:49Ansible playbook structure
- 31:52Installing Docker on servers
- 32:13Bootstrapping Docker Swarm cluster
- 36:41Deploying and testing the cluster
- 37:48Configuring Traefik in Swarm
- 38:31Final deployment and demo
- 40:00Q&A and closing remarks
related talks
31mCommodified IaC using Terraform Cloud
30mHow Sunrise Banks Built a Symmetric Multi Cloud Architecture with Terraform & Vault
14mMulti-Cloud Foundations with Terraform
27mFrom Zero to Production
22mTerraform Hybrid: Unifying Your Physical and Cloud Datacenters
25mEnterprise Deployment to Azure and AWS in Azure DevOps
30mBuild and manage complex application platforms with Terraform
50mInfrastructure as Code for Azure with Terraform
