Yet he commanded the skies above...
Download the repo, compile the code for your platform.
$ git clone https://github.com/bitcoin-software/nubectl
$ cd nubectl
$ ./build.sh
$ mv nubectl/nubectl /usr/local/bin/nubectl
Alternatively, to install to $GOPATH:
$ go install github.com/bitcoin-software/nubectl@latest
nubectl can be used with any CBSD-based platform, self-hosted, cloud-hosted or both
with on-premise CBSD cluster
via env(1):
$ export CLOUD_URL="https://your-cbsd-api.endpoint.com"
$ export CLOUD_KEY="/path/to/your/ssh/key.pub"
$ nubectl --help
via args:
$ nubectl --cloud_url https://your-cbsd-api.endpoint.com --cloud_key /path/to/your/ssh/key.pub
$ nubectl -cloud_url=https://your-cbsd-api.endpoint.com -cloud_key=/path/to/your/ssh/key.pub
with bitclouds
$ export CLOUD_KEY="/path/to/your/ssh/key.pub"
$ nubectl --help
Configure CLI
$ export CLOUD_KEY="/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
This project is under heavy development. Anything can be changed rapidly for no reason.
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.