-
Notifications
You must be signed in to change notification settings - Fork 3
/
deployment.yaml
70 lines (70 loc) · 1.77 KB
/
deployment.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
58
59
60
61
62
63
64
65
66
67
68
69
70
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: benchmark
component: workers
name: benchmark-workers
spec:
replicas: 1
selector:
matchLabels:
app: benchmark
component: workers
template:
metadata:
labels:
app: benchmark
component: workers
spec:
containers:
- image: ghcr.io/temporalio/benchmark-workers:latest
imagePullPolicy: Always
name: benchmark-workers
env:
- name: TEMPORAL_GRPC_ENDPOINT
value: "temporal-frontend.temporal:7233"
- name: TEMPORAL_NAMESPACE
value: "default"
- name: TEMPORAL_TASK_QUEUE
value: "benchmark"
- name: TEMPORAL_WORKFLOW_TASK_POLLERS
value: "16"
- name: TEMPORAL_ACTIVITY_TASK_POLLERS
value: "8"
restartPolicy: Always
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: benchmark
component: soak-test
name: benchmark-soak-test
spec:
replicas: 1
selector:
matchLabels:
app: benchmark
component: soak-test
template:
metadata:
labels:
app: benchmark
component: soak-test
spec:
containers:
- image: ghcr.io/temporalio/benchmark-workers:latest
imagePullPolicy: Always
name: benchmark-soak-test
env:
- name: TEMPORAL_GRPC_ENDPOINT
value: "temporal-frontend.temporal:7233"
- name: TEMPORAL_NAMESPACE
value: "default"
- name: TEMPORAL_TASK_QUEUE
value: "benchmark"
- name: CONCURRENT_WORKFLOWS
value: "10"
command: ["runner", "-w", "-c", "$(CONCURRENT_WORKFLOWS)", "-t", "ExecuteActivity", '{ "Count": 3, "Activity": "Echo", "Input": { "Message": "test" } }']
restartPolicy: Always