coreos-cluster
Create a fully functional core-os 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({
size: 10,
type: 'performance',
version: 'beta',
keyname: 'my-ssh-keyname'
}, function(err, results) {
});
Options
size
- Optional. Size of the cluster in nodes, minimum/default of 3type
- Optional. performance
or onMetal
servers, defaults to performance
vmsversion
- Optional. coreos version: 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 resultsflavor
- Optional. The Rackspace Cloud Servers flavor. Defaults to performance1-1
flavor for performance
and onmetal-compute1
for onMetal
Rackspace Cloud Credentials
coreos-cluster
is built on pkgcloud@1.0.0
and will now make use of environment variables for the Rackspace credentials:
PKGCLOUD_RACKSPACE_USERNAME
- Your rackspace usernamePKGCLOUD_RACKSPACE_APIKEY
- API Key for your accountPKGCLOUD_RACKSPACE_PASSWORD
- Password may be used in lieu of API keyPKGCLOUD_RACKSPACE_REGION
- Region for the coreos clusterPKGCLOUD_RACKSPACE_AUTH_URL
- Optional. Use an alternate authentication endpoint. See the Rackspace Endpoints for more endpoint information.PKGCLOUD_RACKSPACE_USE_INTERNAL
- Optional. Use the local service interface if calling from a Rackspace cloud server
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
.