Git Product home page Git Product logo

coreos-cluster's Introduction

coreos-cluster Build Status NPM version

Create a fully functional CoreOs Cluster on Rackspace Cloud from any node.js application. A command-line version of coreos-cluster is available on npm as coreos-cluster-cli.

Quick Example

var cluster = require('coreos-cluster');

cluster.createCluster({
  numNodes: 10,
  type: 'performance',
  release: 'beta',
  keyname: 'my-ssh-keyname',
  credentials: {
    username: 'your-user-name',
    apiKey: 'some-key-here',
    region: 'iad'
  }
}, function(err, results) {
  // will callback with a functional cluster
});

Options

  • numNodes - required. Number of nodes. Clusters must have at least 3 nodes
  • type - Optional. performance or onMetal servers, defaults to performance vms
  • release - Optional. coreos release: stable (default), beta or alpha
  • keyname - Optional. Rackspace Cloud Servers SSH keyname. If not provided, will create a new ssh key and include in the results
  • flavor - Optional. The Rackspace Cloud Servers flavor. Defaults to performance1-1 flavor for performance and onmetal-compute1 for onMetal
  • privateNetwork - Optional. Guid for a rackspace private network. Will configure etcd to use the private network.
  • monitoringToken - Optional. Will configure the nodes for Rackspace cloud monitoring.
  • discoveryServiceUrl - Optional. Url for an existing cluster's discovery service. Will add numNodes to current cluster instead of create a new cluster.
  • credentials - Required. The credentials for the create cluster call
    • username - Username for your rackspace account
    • apiKey - Api key for your rackspace account
    • region - Region to create the cluster in
    • useInternal - Optional, use local service net interface if calling from Rackspace Cloud machines

Advanced Usage Example

var cluster = require('coreos-cluster');

cluster.createCluster({
  numNodes: 10,
  type: 'performance',
  release: 'beta',
  keyname: 'my-ssh-keyname',
  discoveryServiceUrl: 'https://discovery.etcd.io/some-guid-here',
  privateNetwork: '4c371711-44ae-15ab-86af-45438fb96a15',
  monitoringToken: 'your-monitoring-token',
  update: {
      group: '0a809ab1-c01c-4a6b-8ac8-6b17cb9bae09',
      server: 'https://customer.update.core-os.net/v1/update/'
  },
  credentials: {
    username: 'your-user-name',
    apiKey: 'some-key-here',
    region: 'iad'
  }
}, function(err, results) {
  // will callback with a details of the added nodes
});

Installation

npm install coreos-cluster

Next Steps

As coreos-cluster is built on pkgcloud, the next step is to add a provider option that allows you to use different compute providers within pkgcloud.

coreos-cluster's People

Contributors

kenperkins avatar rgbkrk 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.