Skip to content

Collection of playbooks to deploy Swarm cluster with Flocker in AWS (WIP)

Notifications You must be signed in to change notification settings

echupriyanov/ansible-swarm-aws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This set of playbooks is used to deploy a Swarm cluster in AWS together with Flocker as volume plugin and using etcd as KV store for Docker and Swarm

*** WORK IN PROGRESS ***

Disclaimer: this is rather messy pile of playbooks, but they do their work, though setup if not really functional. I've opened 2 issues in Githubm regarding this setup:

One more issue is steady growth of opened flocker.sock file on nodes with swarm agent running, but I will do some more research before reporting.

Versions used:

  • Ubuntu 14.04.4
  • Docker Engine 1.10.1
  • etcd 2.2.5
  • Docker Compose 1.6
  • Flocker 1.10.2

Quick notes

Preparation

  • set AWS region and ssh keyname in group_vars/all.yml
  • put AWS access and secret keys for Flocker in ansible-vault protected vars file in roles/docker-noda/defaults/secretvars.yml like this:
---
  aws_accesskey: AKIAKAIAKAI
  aws_secretkey: 37780ea436530e0b6053f7f1380e9c327bb8a6dc

Now everything should be ready to deploy.

Order of execution:

  1. Initialize cfssl-based PKI in cfssl folder
  2. ansible-playbook initcfsslca.yml
  3. Set up etcd cluster (3 nodes)
  4. ansible-playbook etcd-create.yml
  5. ansible-playbook etcd-setup.yml
  6. Set up Flocker control node (1 node)
  7. ansible-playbook flocker-create.yml
  8. ansible-playbook flocker-setup.yml
  9. Set up Swarm master nodes (2 nodes)
  10. ansible-playbook swarm-masters-create.yml
  11. ansible-playbook swarm-masters-setup.yml
  12. Set up Swarm worker nodes (2 nodes)
  13. ansible-playbook swarm-nodes-create.yml
  14. ansible-playbook swarm-nodes-setup.yml

At this point everything should be up and running.

About

Collection of playbooks to deploy Swarm cluster with Flocker in AWS (WIP)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published