运用Kubernetes进行分布式负载测试

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

# git clone https://github.com/rootsongjc/distributed-load-testing-using-kubernetes
# cd distributed-load-testing-using-kubernetes/
# cd kubernetes-config/
# docker pull index.tenxcloud.com/jimmy/k8s-sample-webapp:latest 
# kubectl create -f sample-webapp-controller.yaml
# kubectl create -f sample-webapp-service.yaml

构建或pull镜像

# cd ..
# docker build -t index.tenxcloud.com/jimmy/locust-tasks:latest .
或
# docker pull index.tenxcloud.com/jimmy/locust-tasks:latest

部署Locust-Master

$ kubectl create -f locust-master-controller.yaml
$ kubectl create -f locust-master-service.yaml

部署Locust-Worker

$ kubectl create -f locust-worker-controller.yaml

转载于:https://my.oschina.net/u/3074507/blog/1554910

你可能感兴趣的:(运用Kubernetes进行分布式负载测试)