File tree 2 files changed +13
-5
lines changed
2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ class PodCustomisation(schema.BaseModel):
31
31
default_factory = dict ,
32
32
description = "The annotations for pods."
33
33
)
34
- resources : schema .Dict [str , str ] = Field (
34
+ resources : schema .Dict [str , schema . Any ] = Field (
35
35
default_factory = dict ,
36
36
description = "Resources to apply to the pods."
37
37
)
Original file line number Diff line number Diff line change @@ -27,10 +27,14 @@ spec:
27
27
image: {{ benchmark.spec.image }}
28
28
imagePullPolicy: {{ benchmark.spec.image_pull_policy }}
29
29
{{ macros.container_defaults(benchmark, benchmark.spec.server) | indent(20) }}
30
- {% - if benchmark .spec .host_network %}
31
30
securityContext:
31
+ {% - if benchmark .spec .host_network %}
32
32
privileged: true
33
- {% - endif %}
33
+ {% - else %}
34
+ capabilities:
35
+ add:
36
+ - IPC_LOCK
37
+ {% - endif %}
34
38
args:
35
39
- ib_{{ benchmark.spec.mode }}_bw
36
40
- -a
@@ -68,10 +72,14 @@ spec:
68
72
image: {{ benchmark.spec.image }}
69
73
imagePullPolicy: {{ benchmark.spec.image_pull_policy }}
70
74
{{ macros.container_defaults(benchmark, benchmark.spec.client) | indent(20) }}
71
- {% - if benchmark .spec .host_network %}
72
75
securityContext:
76
+ {% - if benchmark .spec .host_network %}
73
77
privileged: true
74
- {% - endif %}
78
+ {% - else %}
79
+ capabilities:
80
+ add:
81
+ - IPC_LOCK
82
+ {% - endif %}
75
83
args:
76
84
- ib_{{ benchmark.spec.mode }}_bw
77
85
- -a
You can’t perform that action at this time.
0 commit comments