Skip to main content

👨‍💻 CLI for managing th2 infrastructure in Kubernetes cluster

Project description

Works with th2 1.5.4

Using

Install:

pip install th2-cli

Install th2

If you already have configurations in th2-cli-install-config.yaml or secrets.yaml, it will be convenient to run process from the directory with these files. In other case CLI will create these config files during installation.

th2 install

Delete th2

th2 delete

Update th2

th2 delete

Wait until all required namespaces are terminated.

th2 install

Configurations templates

th2-cli-install-config.yaml

cassandra:
  datacenter: datacenter1
  host: host.minikube.internal
infra-mgr:
  git:
    http-auth-password: pat_token
    http-auth-username: pat_token
    repository: https://github.com/schema/repository
kubernetes:
  host: 192.168.49.2
  pvs-node: minikube

secrets.yaml

# required only for images from a private registry, will be attached as the first PullSecret to deployments
#productRegistry:
#  username: user
#  password: password
#  name: private-registry-1.example.com # core components registry

# required only for images from a private registry, will be attached as the second PullSecret to deployments
#solutionRegistry:
#  username: user
#  password: password
#  name: private-registry-2.example.com # components registry

# required only for images from a private registry, will be attached as the third PullSecret to deployments
#proprietaryRegistry:
#  username: user
#  password: password
#  name: private-registry-3.example.com # components registry

cassandra:
# set credentials for the existing Cassandra cluster
  dbUser:
    user: cassandra
    password: cassandra

rabbitmq:
# set admin user credentials, it will be created during deployment
  rabbitmqUsername: th2
  rabbitmqPassword: rab-pass
  # must be random string
  rabbitmqErlangCookie: cookie

Development

poetry install
poetry shell
th2 install

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

th2-cli-1.5.0.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

th2_cli-1.5.0-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

Details for the file th2-cli-1.5.0.tar.gz.

File metadata

  • Download URL: th2-cli-1.5.0.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.14

File hashes

Hashes for th2-cli-1.5.0.tar.gz
Algorithm Hash digest
SHA256 502a6773415d584936ce328c34344db75452d5d374a6bef473d6aa02ba2f9eb5
MD5 91328c5eca3120ce4a3adb403464ffd0
BLAKE2b-256 e31e62311e29f15c374a986d3c2b89f8710f168299566deea4d4841c1de8e80d

See more details on using hashes here.

File details

Details for the file th2_cli-1.5.0-py3-none-any.whl.

File metadata

  • Download URL: th2_cli-1.5.0-py3-none-any.whl
  • Upload date:
  • Size: 17.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.14

File hashes

Hashes for th2_cli-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3aa6af8ff95a2e4ece13c5f20c899339ce9e254389b5fa86271da66a859352f9
MD5 7a3d3c4daf1d1862db12916990e51c6c
BLAKE2b-256 2a77bdd48aedeb406b8be0e473deded13feb18a086bd3a3e6c47e38ab2d88bd5

See more details on using hashes here.

Supported by

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