Klocust is a command-line tool for managing Locust distributed load testing on Kubernetes.
$ brew tap DevopsArtFactory/devopsart
$ brew update
$ brew install klocust
$ klocust version
0.0.1
echo 'source <(kubectl completion bash)' >>~/.bashrc
or
echo 'source <(kubectl completion zsh)' >>~/.zsh
$ klocust list
>>> 1 locust deployments in loadtest namespace. (PREFIX: locust-main-)
+-------+---------------------+-------+------------+-----------+------+
| NAME | DEPLOYMENT | READY | UP-TO-DATE | AVAILABLE | AGE |
+-------+---------------------+-------+------------+-----------+------+
| hello | locust-main-hello | 1/1 | 1 | 1 | 9m5s |
+-------+---------------------+-------+------------+-----------+------+
$ klocust init hello
$ vi hello-klocust.yaml
$ vi hello-locustfile.py
$ docker run -p 8089:8089 -v $PWD:/mnt/locust locustio/locust -f /mnt/locust/hello-locustfile.py
or
$ pip3 install locust
$ locust -f hello-locustfile.py
$ klocust apply hello
$ open https://locust-hello.{your domain}
$ klocust delete hello
Go
68.4%
Shell
14.4%
Python
9.3%
Makefile
5.2%
Dockerfile
2.8%
Klocust is a command-line tool for managing Locust distributed load testing on Kubernetes.
$ brew tap DevopsArtFactory/devopsart
$ brew update
$ brew install klocust
$ klocust version
0.0.1
echo 'source <(kubectl completion bash)' >>~/.bashrc
or
echo 'source <(kubectl completion zsh)' >>~/.zsh
$ klocust list
>>> 1 locust deployments in loadtest namespace. (PREFIX: locust-main-)
+-------+---------------------+-------+------------+-----------+------+
| NAME | DEPLOYMENT | READY | UP-TO-DATE | AVAILABLE | AGE |
+-------+---------------------+-------+------------+-----------+------+
| hello | locust-main-hello | 1/1 | 1 | 1 | 9m5s |
+-------+---------------------+-------+------------+-----------+------+
$ klocust init hello
$ vi hello-klocust.yaml
$ vi hello-locustfile.py
$ docker run -p 8089:8089 -v $PWD:/mnt/locust locustio/locust -f /mnt/locust/hello-locustfile.py
or
$ pip3 install locust
$ locust -f hello-locustfile.py
$ klocust apply hello
$ open https://locust-hello.{your domain}
$ klocust delete hello
Go
68.4%
Shell
14.4%
Python
9.3%
Makefile
5.2%
Dockerfile
2.8%