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 = ; cluster;
Options
numNodes
- required. Number of nodes. Clusters must have at least 3 nodestype
- Optional.performance
oronMetal
servers, defaults toperformance
vmsrelease
- Optional. coreos release:stable
(default),beta
oralpha
keyname
- Optional. Rackspace Cloud Servers SSH keyname. If not provided, will create a new ssh key and include in the resultsflavor
- Optional. The Rackspace Cloud Servers flavor. Defaults toperformance1-1
flavor forperformance
andonmetal-compute1
foronMetal
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 addnumNodes
to current cluster instead of create a new cluster.update
- Optional. Update strategies.group
- The update group, can be "master", "stable", "alpha", "beta", or a UUID for a custom CoreUpdate group.server
- Server to get updates from, e.g. https://public.update.core-os.net or https://customer.update.core-os.netrebootStrategy
- When to reboot after an update. E.g. best-effort, etcd-lock, reboot, off.
credentials
- Required. The credentials for the create cluster callusername
- Username for your rackspace accountapiKey
- Api key for your rackspace accountregion
- Region to create the cluster inuseInternal
- Optional, use local service net interface if calling from Rackspace Cloud machines
Advanced Usage Example
var cluster = ; cluster;
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
.