Skip to content

Commit

Permalink
resources, Update minimum resources request (#182)
Browse files Browse the repository at this point in the history
Update ovs-cni resources requests according to empiric use cases.

See https://bugzilla.redhat.com/show_bug.cgi?id=1935218

Signed-off-by: Or Shoval <[email protected]>
  • Loading branch information
oshoval authored Jul 15, 2021
1 parent 5c9a4b0 commit 43e26dd
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions examples/ovs-cni.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ spec:
imagePullPolicy: IfNotPresent
securityContext:
privileged: true
resources:
requests:
cpu: "10m"
memory: "15Mi"
volumeMounts:
- name: cnibin
mountPath: /host/opt/cni/bin
Expand All @@ -51,6 +55,10 @@ spec:
volumeMounts:
- name: ovs-var-run
mountPath: /host/var/run/openvswitch
resources:
requests:
cpu: "10m"
memory: "10Mi"
env:
- name: NODE_NAME
valueFrom:
Expand Down
8 changes: 8 additions & 0 deletions manifests/ovs-cni.yml.in
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ spec:
imagePullPolicy: ${OVS_CNI_PLUGIN_IMAGE_PULL_POLICY}
securityContext:
privileged: true
resources:
requests:
cpu: "10m"
memory: "15Mi"
volumeMounts:
- name: cnibin
mountPath: /host${CNI_MOUNT_PATH}
Expand All @@ -51,6 +55,10 @@ spec:
volumeMounts:
- name: ovs-var-run
mountPath: /host/var/run/openvswitch
resources:
requests:
cpu: "10m"
memory: "10Mi"
env:
- name: NODE_NAME
valueFrom:
Expand Down

0 comments on commit 43e26dd

Please sign in to comment.