Vessel Cli Tool
Project description
workstation-cli
This tool registers a work station given a daas-token generated from DaaS Website.
prerequisites
- python >=3.6
- openssl
Install
pip install sourcesense-vessel
Usage
Usage: vessel-cli [OPTIONS] COMMAND [ARGS]...
Vessel cli tool
Options:
--debug output debug log [False]
--help Show this message and exit.
Commands:
deploy Deploy agent and sentinel for given TOKEN
init Init vault
register Register workstaion to Vessel with the given TOKEN
unseal Unseal vault
Register
Usage: vessel-cli register [OPTIONS] TOKEN
Register workstaion to Vessel with the given TOKEN
Options:
--cluster-host TEXT Hostname of the cluster to control [required]
--cluster-ro TEXT Cluster read-only service-account token [required]
--cluster-rw TEXT Cluster read-write service-account token [required]
--vault TEXT Vault endpoint [http://vault.local]
--openshift Cluster is an Openshift distribution [False]
--init Initialize Vault [False]
--deploy Deploy agent and sentinel container automatically
[False]
--vessel-api TEXT Vessel API RPC endpoint [http://cloud-
api.oc.corp.sourcesense.com/rpc]
--help Show this message and exit.
Deploy
development tests
From inside the vagrant box workstation-ansible
you can register a cluster this way after obtained the <TOKEN>
from the webapp:
vessel-cli init
# choose a password
vessel-cli --debug register \
--cluster-host https://kubernetes.default:6443 \
--cluster-ro $DAAS_CLU_READER_TOKEN \
--cluster-rw $DAAS_MANAGER_TOKEN
--deploy <TOKEN>
DEBUG
# setup python environment
brew install pyenv
pyenv install 3.7.7
echo eval "$(pyenv init -)" > ~/.bashrc
pyenv global 3.7.7
pyenv virtualenv vessel
pyenv local vessel
python setup.py develop
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sourcesense-vessel-1.2.8.tar.gz
(10.4 kB
view details)
Built Distribution
File details
Details for the file sourcesense-vessel-1.2.8.tar.gz
.
File metadata
- Download URL: sourcesense-vessel-1.2.8.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21a252adea473eb4793756f23534f910c6e752ebf010943bb6eb477fe5497373 |
|
MD5 | 76ff1097dc0b8bf61e761b4dfe5e7745 |
|
BLAKE2b-256 | 7a3f96f7f3c475e4df4101c18a172b3923a872076b5edaf94bf6e54201db96c9 |
File details
Details for the file sourcesense_vessel-1.2.8-py3-none-any.whl
.
File metadata
- Download URL: sourcesense_vessel-1.2.8-py3-none-any.whl
- Upload date:
- Size: 14.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 450e762398d56a8d26fa2c9fbdfb677ea46fa0c34c576194a8d5a2e21098c42b |
|
MD5 | 71945ad79f63dbe9a12652239389f31c |
|
BLAKE2b-256 | f3308996607a1407c4df4ad2aeb290c2756e159555d3b9310351e3851af7ba8c |