cluster hq online meetup 2 (dec 15) getting started with fli using aws cloudformation
TRANSCRIPT
What’s in here?
1. Brief review of Fli and FlockerHub2. Getting Started with Fli using AWS
CloudFormation
Introduction
● FlockerHub is a Hub for data, like GitHub is a Hub for source code and DockerHub is a Hub for container images.
● Specifically, FlockerHub lets you store your Docker data volumes and organize them into volumesets and branches that are owned by organizations, teams and individual users.
● FlockerHub also provides a user interface for organizing and controlling access to snapshots.
● Docs at https://flockerhub-docs.clusterhq.com
Introduction
● Fli, the FlockerHub CLI, is like Git for data. Just like you can use Git to copy, branch,
push and pull code, you can use Fli to copy, branch, push and pull your data volumes.
● Fli lets you take incremental snapshots of any database or data volume that runs on
Linux and push those snapshots to a hosted volume repository called FlockerHub.
● There they can be accessed by any person or machine to whom you’ve granted
access. Fli can also be used without FlockerHub to manage data volumes locally.
● Open-source: https://github.com/clusterhq/fli
● Docs https://fli-docs.clusterhq.com
Fli and FlockerHub Architecture
@RyanWallner@ClusterHQ
https://fli-docs.clusterhq.com/en/latest/GettingStarted.html
If you want to follow long
● An AWS account. You can sign up for free here.
● An SSH client. ssh from a Linux or Mac terminal, or something like PuTTY on Windows.
*new regions such as Canada, London and Ohio are currently unsupported.
What we will be doing
● Go to the Amazon CloudFormation Console.
● Click “Create Stack”● Choose “Upload a template”, and
then choose the fli-CloudFormation-Ubuntu16.04 template from this repository.
● Click “Next”● Choose your SSH Key and give
your Stack a name.● Click “Create” to start the Stack.
● CloudFormation will output the DNS address of your new Fli client in the “output” tab. SSH to this address.
Setup Fli with your ZPOOL and Token
$ ssh -i ~/yourkey.pem ubunutu@<DNS-NAME-FROM-CLOUDFORMATION-OUTPUT>
$ sudo su
$ fli setup --zpool chq
$ fli config --token /root/token.txt
Use Fli
$ fli init MyFirstVolumeset -a owner=me,env=cf -d "My first volumeset for snapshots!"
$ fli create MyFirstVolumeset my-first-volume -a first_volume=true
$ fli snapshot MyFirstVolumeset:my-first-volume MySnapshot
$ fli sync MyFirstVolumeset
$ fli push MyFirstVolumeset:MySnapshot
Recording of getting started with AWS CloudFormation
https://youtu.be/hE3P-hkNUR8
Blog Post Versionhttps://clusterhq.com/2016/12/14/fli-aws-cf/
Thank You.
Sign Up: https://flockerhub.clusterhq.comSlack: https://slack.clusterhq.com/
Twitter: @ryanwallnerWebsite: https://clusterhq.com
IRC: freenode #clusterhq