Skip to content

v1.0.5

Latest
Compare
Choose a tag to compare
@MandssS MandssS released this 19 Aug 06:42

What's Changed

  • Fix: fix scope list by user, and change images hub @MandssS
  • Support custom mysql and not create mysql deployment by @aiyijing in #170

New Contributors

Full Changelog: v1.0.4...v1.0.5

Host

If you're deployed on host, the usage method is as follows:

Create Database

There are two ways: The first is to execute command CREATE DATABASE IF NOT EXISTS chaosblade , and the second way is to start the docker database image locally.

Notes: You must replace the follow parameters: DATASOURCE_HOST, DATASOURCE_USERNAME, DATASOURCE_PASSWORD, BOX-HOST(localHostIP:port, eg: ip:7001)

Commands of The second way:

docker run -d -it -p 3306:3306 \
            -e MYSQL_DATABASE=chaosblade \
            -e MYSQL_ROOT_PASSWORD=[DATASOURCE_PASSWORD] \
            --name mysql-5.6 mysql:5.6 \
            --character-set-server=utf8mb4 \
            --collation-server=utf8mb4_unicode_ci \
            --default-time_zone='+8:00' \
            --lower_case_table_names=1

Run Application

Download the chaosblade-box-1.0.5.jar and run the following command to start:

nohup java -Duser.timezone=Asia/Shanghai -jar chaosblade-box-1.0.5.jar --spring.datasource.url="jdbc:mysql://DATASOURCE_HOST:3306/chaosblade?characterEncoding=utf8&useSSL=false" --spring.datasource.username=DATASOURCE_USERNAME --spring.datasource.password=DATASOURCE_PASSWORD --chaos.server.domain=BOX-HOST --chaos.function.sync.type=ALL --chaos.prometheus.api=PROMETHEUS_API> chaosblade-box.log 2>&1 &

For example:

nohup java -Duser.timezone=Asia/Shanghai -jar chaosblade-box-1.0.5.jar --spring.datasource.url="jdbc:mysql://XXXX:3306/chaosblade?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai" --spring.datasource.username=XXXX --spring.datasource.password=XXXX --chaos.server.domain=XXXX:7001 --chaos.function.sync.type=ALL  --chaos.prometheus.api=http://127.0.0.1:9090/api/v1/query_range > chaosblade-box.log 2>&1 &

If jdk17, start command need add --add-opens java.base/java.lang=ALL-UNNAMED

Access Platform

You can use a browser to access the http://XXXX:7001 website to use the platform.

kubernetes

If you're deployed on kubernetes, the usage method is as follows:

Install chaosblade-operator

helm repo add chaosblade-io https://chaosblade-io.github.io/charts
helm install chaosblade chaosblade-io/chaosblade-operator --namespace chaosblade

see more

Run Application

Notes: You must replace the follow parameters: DATASOURCE_PASSWORD

helm install chaosblade-box chaosblade-box-1.0.5.tgz --namespace chaosblade --set spring.datasource.password=DATASOURCE_PASSWORD