Set app-intel-device-plugins memory request to 0
All platform pods are supposed to have no memory resource requests. In this commit, memory request are set to 0 for all the plugins of app-intel-device-plugins. TEST PLANS: PASSED: Verify upload, apply, remove and delete app PASSED: Check the description of the node using below command "kubectl describe node controller-0" and check at the "Memory Requests" column in the table for "Non-terminated Pods", which should show 0 cpu request for all the plugins. PASSED: Verify requests.memory is 0 in the pod description after deleting the pod. PASSED: Verify requests.memory is 0 in the pod description after lock/unlock. Story: 2011407 Task: 52809 Change-Id: Ieafaf03b93dd9df32495393239fad754ee3a11a8 Signed-off-by: Md Irshad Sheikh <mdirshad.sheikh@windriver.com>
This commit is contained in:
@@ -281,8 +281,8 @@ class IntelDevicePluginsAppLifecycleOperator(base.AppLifecycleOperator):
|
||||
"""
|
||||
LOG.info(f"Running {app.name} post apply to {app.version} version")
|
||||
patch = '[{"op":"replace",' \
|
||||
'"path":"/spec/template/spec/containers/0/resources/requests/cpu",' \
|
||||
'"value":"0"}]'
|
||||
'"path":"/spec/template/spec/containers/0/resources/requests",' \
|
||||
'"value":{"cpu":"0m","memory":"0Mi"}}]'
|
||||
|
||||
try:
|
||||
# Get all daemonsets in the intel-device-plugins-operator namespace
|
||||
|
@@ -12,4 +12,5 @@ image:
|
||||
|
||||
resources:
|
||||
requests:
|
||||
cpu: 0
|
||||
cpu: 0m
|
||||
memory: 0Mi
|
||||
|
Reference in New Issue
Block a user