GithubHelp home page GithubHelp logo

d0rich / th2-cli Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 4.26 MB

๐Ÿ‘จโ€๐Ÿ’ป CLI for managing th2 infrastructure in Kubernetes cluster

Home Page: http://th2-cli.d0rich.me/

License: MIT License

Python 98.20% TypeScript 1.80%
cassandra cli d0rich-parse-mark helm-charts kubernetes th2

th2-cli's Introduction

th2-cli

Works with th2 1.7.3

Using

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

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

Get th2 status

Display information about all th2-related namespaces in Kubernetes.

th2 status

infra-mgr

Display status of infra-mgr pod:

th2 mgr status

Display last logs of infra-mgr pod:

th2 mgr logs

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

th2-cli's People

Contributors

d0rich avatar

Stargazers

Elena Treshcheva avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.