diff --git a/execution/uc2-workload-generator/deployment.yaml b/execution/uc2-workload-generator/deployment.yaml
index 6a3d0cfe7184f6e7807210316272d3290536e760..e3c489a05afa7955f47886817e52d6d267527625 100644
--- a/execution/uc2-workload-generator/deployment.yaml
+++ b/execution/uc2-workload-generator/deployment.yaml
@@ -6,7 +6,7 @@ spec:
selector:
matchLabels:
app: titan-ccp-load-generator
- replicas: 1
+ replicas: {{INSTANCES}}
template:
metadata:
labels:
@@ -31,3 +31,9 @@ spec:
value: "4"
- name: NUM_NESTED_GROUPS
value: "{{NUM_NESTED_GROUPS}}"
+ - name: POD_NAME
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.name
+ - name: INSTANCES
+ value: "{{INSTANCES}}"
diff --git a/execution/uc4-workload-generator/deployment.yaml b/execution/uc4-workload-generator/deployment.yaml
index 312cbfc259a5faa85690aa4d4870562460c90e7d..98747b3922d439144e783b0e637cbe68e46f1b88 100644
--- a/execution/uc4-workload-generator/deployment.yaml
+++ b/execution/uc4-workload-generator/deployment.yaml
@@ -6,7 +6,7 @@ spec:
selector:
matchLabels:
app: titan-ccp-load-generator
- replicas: 1
+ replicas: {{INSTANCES}}
template:
metadata:
labels:
@@ -27,3 +27,9 @@ spec:
value: "http://my-confluent-cp-schema-registry:8081"
- name: NUM_SENSORS
value: "{{NUM_SENSORS}}"
+ - name: POD_NAME
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.name
+ - name: INSTANCES
+ value: "{{INSTANCES}}"