Skip to content

Commit c9debae

Browse files
Add cpu/memory requests and limits
Operator maturity level 3 requires cpu/memory requests and limits for operands. Add them to all plugins deployed by operator Signed-off-by: Hyeongju Johannes Lee <[email protected]>
1 parent ff200f9 commit c9debae

File tree

7 files changed

+49
-0
lines changed

7 files changed

+49
-0
lines changed

Diff for: deployments/dlb_plugin/base/intel-dlb-plugin.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ spec:
3232
readOnlyRootFilesystem: true
3333
allowPrivilegeEscalation: false
3434
terminationMessagePath: /tmp/termination-log
35+
resources:
36+
requests:
37+
memory: "15Mi"
38+
cpu: 40m
39+
limits:
40+
memory: "30Mi"
41+
cpu: 40m
3542
volumeMounts:
3643
- name: devfs
3744
mountPath: /dev

Diff for: deployments/dsa_plugin/base/intel-dsa-plugin.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ spec:
3333
type: "container_device_plugin_t"
3434
readOnlyRootFilesystem: true
3535
allowPrivilegeEscalation: false
36+
resources:
37+
requests:
38+
memory: "25Mi"
39+
cpu: 40m
40+
limits:
41+
memory: "50Mi"
42+
cpu: 50m
3643
volumeMounts:
3744
- name: devfs
3845
mountPath: /dev/dsa

Diff for: deployments/fpga_plugin/base/intel-fpga-plugin-daemonset.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ spec:
4444
securityContext:
4545
readOnlyRootFilesystem: true
4646
allowPrivilegeEscalation: false
47+
resources:
48+
requests:
49+
memory: "30Mi"
50+
cpu: 40m
51+
limits:
52+
memory: "60Mi"
53+
cpu: 80m
4754
volumeMounts:
4855
- name: devfs
4956
mountPath: /dev

Diff for: deployments/gpu_plugin/base/intel-gpu-plugin.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ spec:
3636
type: "container_device_plugin_t"
3737
readOnlyRootFilesystem: true
3838
allowPrivilegeEscalation: false
39+
resources:
40+
requests:
41+
memory: "45Mi"
42+
cpu: 40m
43+
limits:
44+
memory: "90Mi"
45+
cpu: 50m
3946
volumeMounts:
4047
- name: devfs
4148
mountPath: /dev/dri

Diff for: deployments/iaa_plugin/base/intel-iaa-plugin.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ spec:
3333
type: "container_device_plugin_t"
3434
readOnlyRootFilesystem: true
3535
allowPrivilegeEscalation: false
36+
resources:
37+
requests:
38+
memory: "25Mi"
39+
cpu: 40m
40+
limits:
41+
memory: "50Mi"
42+
cpu: 60m
3643
volumeMounts:
3744
- name: devfs
3845
mountPath: /dev/iax

Diff for: deployments/qat_plugin/base/intel-qat-plugin.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ spec:
3737
readOnlyRootFilesystem: true
3838
allowPrivilegeEscalation: false
3939
imagePullPolicy: IfNotPresent
40+
resources:
41+
requests:
42+
memory: "15Mi"
43+
cpu: 40m
44+
limits:
45+
memory: "30Mi"
46+
cpu: 70m
4047
volumeMounts:
4148
- name: devdir
4249
mountPath: /dev/vfio

Diff for: deployments/sgx_plugin/base/intel-sgx-plugin.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ spec:
2828
readOnlyRootFilesystem: true
2929
allowPrivilegeEscalation: false
3030
imagePullPolicy: IfNotPresent
31+
resources:
32+
requests:
33+
memory: "15Mi"
34+
cpu: 40m
35+
limits:
36+
memory: "30Mi"
37+
cpu: 40m
3138
volumeMounts:
3239
- name: kubeletsockets
3340
mountPath: /var/lib/kubelet/device-plugins

0 commit comments

Comments
 (0)