ClusterHQ / unofficial-flocker-tools

A tool to make installing Flocker with container orchestration tools easier and more fun
https://clusterhq.com/
11 stars 9 forks source link

Make uft-tool docker swarm friendly #48

Closed Stephenitis closed 8 years ago

Stephenitis commented 8 years ago

notes in progress...

uft-flocker-install cluster.yml --swarm or uft-flocker-install cluster.yml docker-H tcp://0.0.0.0:2375

on master node

  1. docker run --rm swarm create
  2. export clusterkey to localhost?

terraform Open Inbound Ports (2375 from internal, 2357 from external My IP) Need to reference the correct VPC ID when you create the sec group as well. Also open any other ports that your application may use, like 8080 

wallnerryan commented 8 years ago
wallnerryan commented 8 years ago

https://github.com/wallnerryan/unofficial-flocker-tools/tree/swarm-integration does this for Ubuntu on AWS

-> uft-flocker-config cluster.yml --swarm
Initialized cluster CA.
Created control cert.
Generated 18c9c57a-4529-438e-9742-02737cc0e11d for 52.8.59.116
Generated 03f71b6c-7132-452a-9884-87911fd6900d for 52.8.109.65
Created user key for user
Making /etc/flocker directory on all nodes
Uploading keys to respective nodes:
 * Uploaded control cert & key to control node.
 * Uploaded control key to ec2-52-8-114-153.us-west-1.compute.amazonaws.com
 * Uploaded cluster cert to ec2-52-8-114-153.us-west-1.compute.amazonaws.com
 * Uploaded control crt to ec2-52-8-114-153.us-west-1.compute.amazonaws.com
 * Uploaded cluster cert to 52.8.59.116
 * Uploaded cluster cert to 52.8.109.65
 * Uploaded node crt to 52.8.109.65
 * Uploaded node crt to 52.8.59.116
 * Uploaded agent.yml to 52.8.59.116
 * Uploaded node key to 52.8.109.65
 * Uploaded node key to 52.8.59.116
 * Uploaded agent.yml to 52.8.109.65
Created Swarm ID
Started Swarm Agent for 52.8.59.116
Started Swarm Agent for 52.8.109.65
Started Swarm Master
Swarm Master is at tcp://ec2-52-8-114-153.us-west-1.compute.amazonaws.com:2357

ping @luke @Stephenitis

wallnerryan commented 8 years ago

see PR for updates, if merged will close. https://github.com/ClusterHQ/unofficial-flocker-tools/pull/49