Giter VIP home page Giter VIP logo

google-cloud-swarm's Introduction

google-cloud-swarm

Scripts to create and manage a Docker Swarm cluster on Google Cloud Platform.

Prerequisites

Before you start

Make sure you create a Google Cloud Project

Login:

gcloud init

Create a Cluster

./swarm-up.sh

By default, this will create a cluster with one manager and two workers. You can edit this and more options in the options.yaml file.

Delete a Cluster

./swarm-down.sh

Resize a Cluster

./swarm-resize.sh <NUM_WORKERS>

Options

Edit the options.yaml file to specify your options.

Cluster Config

  • Cluster Configuration Options
    • prefix = All nodes in the Swarm will start with this Prefix. This allows you to have multiple Swarms in the same project.
    • zone = Google Cloud Zone for the nodes - default: us-central1-f
  • Manager Options
    • manager_machine_type = Google Cloud Machine Type for the Manager nodes - default: n1-standard-1
    • manager_disk = Disk size in GB for the Manager nodes - default: 100
  • Worker Options
    • num = Number of Workers for the Cluster - default: 2
    • worker_machine_type = Google Cloud Machine Type for the Worker nodes - default: n1-standard-1
    • worker_disk = Disk size in GB for the Worker nodes - default: 100

How it works

These scripts are simple wrappers around a set of Deployment Manager templates.

It launches a VM for the Swarm Manager, and a Managed Instance Group for the workers.

This allows you to dynamically scale the number of workers as well as easily create Network Load Balancers that target the worker nodes.

Docker-Machine is used to connect to the Manager node over a secure TLS connection

Notes:
  • This is not an official Google product
  • This is not an official Docker product
  • Only tested on OSX

google-cloud-swarm's People

Contributors

thesandlord avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.