Works with th2 1.7.3
Install:
pip install th2-cli
Check version of CLI:
th2 version
Output example:
$ th2 version
th2 CLI v1.7.3
Source repository: https://github.com/d0rich/th2-cli
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
th2 delete
th2 delete
Wait until all required namespaces are terminated.
th2 install
Display information about all th2-related namespaces in Kubernetes.
th2 status
Display status of infra-mgr pod:
th2 mgr status
Display last logs of infra-mgr pod:
th2 mgr logs
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
# 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
poetry install
poetry shell
th2 install