Skip to content

Cloud control utility for human beings

Notifications You must be signed in to change notification settings

run-bhyve/nubectl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple cloud control utility

Yet he commanded the skies above...

Installation

Download the repo, compile the code for your platform.

$ git clone https://github.com/bitcoin-software/nubectl
$ cd nubectl
$ ./build.sh
$ mv nubectl /usr/local/bin/nubectl

Alternatively, to install to $GOPATH:

$ go get github.com/bitcoin-software/nubectl

Usage

nubectl can be used with any CBSD-based platform, self-hosted, cloud-hosted or both

with on-premise CBSD cluster

via env(1):

$ export CLOUDURL="https://your-cbsd-api.endpoint.com"
$ export CLOUDKEY="/path/to/your/ssh/key.pub"
$ nubectl --help

via args:

$ nubectl --cloudurl https://your-cbsd-api.endpoint.com --cloudkey /path/to/your/ssh/key.pub
$ nubectl -cloudurl=https://your-cbsd-api.endpoint.com -cloudkey=/path/to/your/ssh/key.pub
$ export CLOUDKEY="/path/to/your/ssh/key.pub"
$ nubectl --help

Infrastructure as a Code

Configure CLI

$ export CLOUDKEY="/path/to/your/ssh/key.pub"

Create config.yaml file in $PWD. Refer to example cloud config

version: alfa

vm:
  - name: nodejsapp
    cpu: 1
    ram: 2g
    disksize: 10g
    image: centos7

container:
  - name: balancer
    type: jail
    disksize: 10g

  - name: fileshare
    type: jail
    disksize: 15g

Apply configuration

$ nubectl apply

Divert configuration

$ nubectl divert

WIP

This project is under heavy development. Anything can be changed rapidly for no reason.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

WTFPL

About

Cloud control utility for human beings

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 94.6%
  • Shell 5.4%