Skip to content

Commit 2438b60

Browse files
committed
Add multus annotations to fio workers
1 parent 5e67815 commit 2438b60

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

python/perftest/templates/fio.yaml.j2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ tasks:
100100
metadata:
101101
labels:
102102
{{ macros.labels(benchmark, "worker") | indent(10) }}
103+
{%- if not benchmark.spec.host_network and benchmark.spec.network_name %}
104+
annotations:
105+
v1.multus-cni.io/default-network: {{ benchmark.spec.network_name }}
106+
{%- endif %}
103107
spec:
104108
priorityClassName: {{ benchmark.status.priority_class_name }}
105109
{%- if benchmark.spec.host_network %}

0 commit comments

Comments
 (0)