From 777fd213f810beb9f3d15e061036efa6c83f38bf Mon Sep 17 00:00:00 2001 From: Or Shoval Date: Sun, 11 Jul 2021 10:23:06 +0300 Subject: [PATCH] install-cni, Add resources requests for initContainer Add minimum required cpu and memory resources for the initContainer. Based on empiric checks (set limits and see the minimum required). See https://bugzilla.redhat.com/show_bug.cgi?id=1935218 Signed-off-by: Or Shoval --- manifests/macvtap.yaml | 4 ++++ templates/macvtap.yaml.in | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/manifests/macvtap.yaml b/manifests/macvtap.yaml index c9df8388..7f69eb35 100644 --- a/manifests/macvtap.yaml +++ b/manifests/macvtap.yaml @@ -37,6 +37,10 @@ spec: command: ["cp", "/macvtap-cni", "/host/opt/cni/bin/macvtap"] image: quay.io/kubevirt/macvtap-cni:latest imagePullPolicy: Always + resources: + requests: + cpu: "10m" + memory: "15Mi" securityContext: privileged: true volumeMounts: diff --git a/templates/macvtap.yaml.in b/templates/macvtap.yaml.in index e2a9446c..122f4446 100644 --- a/templates/macvtap.yaml.in +++ b/templates/macvtap.yaml.in @@ -37,6 +37,10 @@ spec: command: ["cp", "/macvtap-cni", "/host/opt/cni/bin/macvtap"] image: '{{ .MacvtapImage }}' imagePullPolicy: '{{ .ImagePullPolicy }}' + resources: + requests: + cpu: "10m" + memory: "15Mi" securityContext: privileged: true volumeMounts: