-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvalues.yaml
57 lines (51 loc) · 1.17 KB
/
values.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
Name: locust
image:
repository: quay.io/honestbee/locust
tag: 0.7.5
pullPolicy: IfNotPresent
pullSecrets: []
service:
name: master-web
type: NodePort
externalPort: 8089
internalPort: 8089
nodePort: 0
annotations: {}
extraLabels: {}
master:
config:
target-host: https://site.example.com
resources:
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi
worker:
config:
# all files from tasks folder are mounted under `/locust-tasks`
locust-script: "/locust-tasks/task001.py"
replicaCount: 2
resources:
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi
configMap:
tasksfiles:
task001.py: |
import json
from locust import HttpLocust, TaskSet, task
class Grasshoppers(TaskSet):
def on_start(self):
self.client.verify = False
@task
def get_api_Amenities_filters(self):
self.client.get("/api/Amenities/filters", name="/api/Amenities/filters")
class AwesomeUser(HttpLocust):
task_set = Grasshoppers
min_wait = 1 * 1000
max_wait = 5 * 1000