quilt

command module
v0.0.0-...-f852ded Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2018 License: MIT Imports: 12 Imported by: 0

README

Deprecation Notice

This project is no longer being maintained by the Kelda team. To get updated when our next project is ready, sign up for our mailing list!

Build Status Go Report Card Code Coverage

Kelda

A straightforward way to configure containerized applications.

What is Kelda?

Kelda is a simple way to configure, run, and manage containerized applications in the cloud.

No more YAML, templating, complicated CLIs, and new domain specific languages. Kelda’s intuitive JavaScript API makes it easy to describe what you want to run in the cloud — that is, the virtual machines, containers, network policies, and more.

Using Kelda's CLI, simply pass your high-level blueprint to Kelda’s Kubernetes-based deployment platform. We'll take care of the nitty gritty details needed to get your system up and running in your cloud of choice.

Install

Install Kelda with npm:

$ npm install -g @kelda/install

Check out more in our Quick Start tutorial.

Deploy Quickly On...

providers

How Do I Use It?

  1. Describe your application using Kelda's JavaScript API (or use a pre-made blueprint).

    const kelda = require('kelda');
    
    // A Docker container running your application.
    const app = new kelda.Container({
      name: 'my-app',
      image: 'myDockerImage',
    });
    
    // Expose the application to the public internet on port 80.
    kelda.allowTraffic(kelda.publicInternet, app, 80);
    
  2. Describe where to run the application.

    // A virtual machine with 8 GiB RAM and 2 CPUs on Amazon EC2.
    const virtualMachine = new kelda.Machine({
      provider: 'Amazon', // 'Google', 'DigitalOcean'.
      ram: 8,
      cpu: 2,
    });
    
    // An infrastructure with one Kelda Master machine and 6 Worker machines -- all in EC2.
    const infrastructure = new kelda.Infrastructure({
      masters: virtualMachine,
      workers: virtualMachine.replicate(6),
    });
    
    // Deploy the app to the infrastructure.
    app.deploy(infrastructure);
    
  3. Boot the application to your preferred cloud using Kelda's CLI.

    $ kelda run ./myBlueprint.js
    Your blueprint is being deployed. Check its status with `kelda show`.
    
  4. Manage your deployment from the command line.

    Keep track of virtual machines and containers.

    $ kelda show
    MACHINE         ROLE      PROVIDER    REGION       SIZE         PUBLIC IP         STATUS
    i-0d1d363a57    Master    Amazon      us-west-1    m3.medium    54.149.85.24      connected
    i-0b6ef239c7    Worker    Amazon      us-west-1    m3.medium    54.218.19.34      connected
    ...
    
    CONTAINER       MACHINE         COMMAND          HOSTNAME    STATUS     CREATED           PUBLIC IP
    bce2362f3a1f    i-0b6ef239c7                     my-app      running    20 seconds ago    54.218.19.34:80
    ...
    

    SSH into containers and machines (here, the my-app container).

    $ kelda ssh my-app
    

    Stop the deployment.

    $ kelda stop
    

    And more...

Learn more in our Quick Start tutorial.

API

Here are a some of the cool things you can do with Kelda's API.

Share and Reuse Configuration

Don't waste time combing through reams of application specific documentation. Share and reuse configuration like you do with other software libraries.

const Redis = require('@kelda/redis');
const redisDB = new Redis(3, 'ADMIN_PASSWORD'); // A Redis database with 3 workers.
Configure a Secure Network

Only allow the traffic your application needs.

// Let the app send traffic to the Redis database on port 6379.
kelda.allowTraffic(app, redisDB.master, 6379);
Run Containers

Quickly get running in the cloud.

const otherApp = new kelda.Container({
  name: 'my-other-app',
  image: 'myOtherImage',
});
Keep Sensitive Data Safe

We keep your keys, certificates, and passwords encrypted and in the right hands.

otherApp.env['GITHUB_OATH_TOKEN'] = new kelda.Secret('githubOathToken');
Deploy Anywhere

Kelda's API is cloud agnostic, so you, your users, and colleagues can run the same blueprint in any of Kelda's supported clouds.

const machine = new kelda.Machine({
  provider: 'Google', // 'Amazon', 'DigitalOcean'.
  size: 'n1-standard-2', // 'm3.medium', '1gb'.
});

See the full API reference in our docs.

Reference Blueprints

Kelda blueprints have been written for many popular applications. Here are some that we recommend checking out:

  • Apache Spark. Deploy a multi-node Spark cluster for data processing.
  • HAProxy. Load balance traffic across different applications.
  • Kibana. Vizualize data from a hosted Elasticsearch instance.

Get Involved

We would love to work with you, get your feedback, or answer any questions you have!

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
pb
Package pb is a generated protocol buffer package.
Package pb is a generated protocol buffer package.
cli
ssh
acl
cfg
tls
tls/io
Package io is used to ensure that the various pieces of code that interact with credentials read and write files to consistent locations.
Package io is used to ensure that the various pieces of code that interact with credentials read and write files to consistent locations.
Package join implements a generic interface for matching elements from two slices similar in spirit to a database Join.
Package join implements a generic interface for matching elements from two slices similar in spirit to a database Join.
kubernetes/mocks
Code generated by mockery v1.0.1 DO NOT EDIT.
Code generated by mockery v1.0.1 DO NOT EDIT.
network
Package network manages the network services of the application dataplane.
Package network manages the network services of the application dataplane.
nl
pb
Package pb is a generated protocol buffer package.
Package pb is a generated protocol buffer package.
scripts
str

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL