-
Install python, docker/Colima, minikube, kubectl
-
Draft a locust test skeleton
-
pull locust image Run =>
docker pull locustio/locust
-
Create a docker file with base image as locust including required test skeleton and build docker image using below command Run =>
docker build -t blazedemo/locust:v1 .
-
Minikube is a lightweight Kubernetes implementation that creates a VM on your local machine and deploys a simple cluster containing only one node Run =>
minikube start
-
Create a namespace for the local cluster Run =>
kubectl create namespace locust
-
To deploy helm templates Run =>
helm upgrade --install local-perf-locust locust-helm-chart --set image.tag=v3 --namespace locust
-
Check if master and worker pods are up and running =>
kubectl get pods -n locust
-
Log into Pods =>
kubectl exec local-perf-locust-master-56bdc45f64-r7nmt -it sh -n locust
-
To access WEB UI : =>
kubectl --namespace locust port-forward service/local-perf-locust 8089:8089
=> URL : http://localhost:8089 -
To uninstall Helm templates Run =>
helm uninstall local-perf-locust -n locust
-
Notifications
You must be signed in to change notification settings - Fork 0
Locust Performance test as code with Distributed Load Testing using Docker and Kubernetes
License
Avinash-Kannan/performance-locust-kubernetes
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Locust Performance test as code with Distributed Load Testing using Docker and Kubernetes
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published