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]
--version Show version and exits
--help Show this message and exit.
Commands:
completion Install completion script
deployment Generated and Deploy agent, sentinel and event-engine...
init Init vault
kubebench
register Register workstaion to Vessel with the given TOKEN
unseal Unseal vault
update Updates agent and sentinel deployments
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.
Deployment
Usage: vessel-cli deployment [OPTIONS] TOKEN
Generated and Deploy agent, sentinel and event-engine deployments to
internal kubernetes for given TOKEN
Options:
--sentinel TEXT Generates sentinel at given tag [None]
--agent TEXT Generates agent yaml at given tag [None]
--event TEXT Generates event-engine yaml at given tag [None]
--apply run kubectl apply on generated deployments [False]
--help Show this message and exit.
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://192.168.58.2:6443 --cluster-ro $DAAS_CLU_READER_TOKEN --cluster-rw $DAAS_MANAGER_TOKEN <TOKEN>
# apply deployemnts of agent sentinel and event-engine
vessel-cli deployment --event latest --sentinel latest --agent latest --apply
Configure prometheus
Update alertmanager.tyaml config
kubectl -n monitoring create secret generic alertmanager-prometheus-kube-prometheus-alertmanager --dry-run=client -o yaml --from-file=alertmanager.yaml | kubectl -n monitoring apply -f -
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.3.7.tar.gz
(11.9 kB
view details)
Built Distribution
File details
Details for the file sourcesense-vessel-1.3.7.tar.gz
.
File metadata
- Download URL: sourcesense-vessel-1.3.7.tar.gz
- Upload date:
- Size: 11.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.1 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55c573684f6e1697ea6eb3815de4ff3ff4490e650b036b6eb57e86e4f0e981a5 |
|
MD5 | f1f2de304bb4ce40b031a74c991b3490 |
|
BLAKE2b-256 | 2d14634bc872b9b6ea3fe498c5d21cadd02b5cf5db193e06b77c1a6152fd6243 |
File details
Details for the file sourcesense_vessel-1.3.7-py3-none-any.whl
.
File metadata
- Download URL: sourcesense_vessel-1.3.7-py3-none-any.whl
- Upload date:
- Size: 17.9 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/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.1 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bdf8411d44f7f774d2f9b58d3cd6344550b6995a6b86d2a9200b7e3a1802e41f |
|
MD5 | da93404a9c3c24efb7691dab7b1c11e0 |
|
BLAKE2b-256 | 892ce539cb68a9e7fd3fab0b534a281f2a92bc643d126d9312fb63de8e60c49e |