Skip to main content

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


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.1.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

sourcesense_vessel-1.2.1-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file sourcesense-vessel-1.2.1.tar.gz.

File metadata

  • Download URL: sourcesense-vessel-1.2.1.tar.gz
  • Upload date:
  • Size: 9.6 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

Hashes for sourcesense-vessel-1.2.1.tar.gz
Algorithm Hash digest
SHA256 7bad38aecf96375993715b8f9dbc4928ea6c92da46a227672b2a037bcd645fbb
MD5 aace2b4d7c2e9c98e94bff3379e3b03d
BLAKE2b-256 79d713dd0bc16689dea4548443a0830db78e5c700b86d702986b59f96c07100e

See more details on using hashes here.

File details

Details for the file sourcesense_vessel-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: sourcesense_vessel-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 12.6 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

Hashes for sourcesense_vessel-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0d6140b85a99e1335c011eafe67e9e0051f9630b914835011398d059af9c1796
MD5 871747574f0b1631b7174c154d321d7f
BLAKE2b-256 10e6633114881d5a4987561efb9e0175d2548cb50cbf889bd7300733c9d60722

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page