From d92896785871a1ae351ab74d5a58a2449b5ccd33 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ferenc=20T=C3=B3th?= Date: Fri, 27 Sep 2019 11:04:43 +0200 Subject: [PATCH] Prepare SRIOV DP Pod spec for v3.0.0+ MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit - hostNetwork is needed - need to access to the full /sys filesystem Signed-off-by: Ferenc Tóth Change-Id: I0f5aefd5a9ace49e5a024f07cc0e8eeaf52d8bdf --- SPECS/infra-charts.spec | 2 +- infra-charts/templates/sriovdp-ds.yaml | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/SPECS/infra-charts.spec b/SPECS/infra-charts.spec index 33d643c..30a9300 100644 --- a/SPECS/infra-charts.spec +++ b/SPECS/infra-charts.spec @@ -15,7 +15,7 @@ %define COMPONENT infra-charts %define RPM_NAME caas-%{COMPONENT} %define RPM_MAJOR_VERSION 1.0.0 -%define RPM_MINOR_VERSION 28 +%define RPM_MINOR_VERSION 29 Name: %{RPM_NAME} Version: %{RPM_MAJOR_VERSION} diff --git a/infra-charts/templates/sriovdp-ds.yaml b/infra-charts/templates/sriovdp-ds.yaml index 9cb9577..ca0e889 100644 --- a/infra-charts/templates/sriovdp-ds.yaml +++ b/infra-charts/templates/sriovdp-ds.yaml @@ -32,6 +32,7 @@ spec: name: sriovdp spec: priorityClassName: "system-node-critical" + hostNetwork: true nodeSelector: sriov: enabled containers: @@ -51,7 +52,7 @@ spec: - mountPath: /var/lib/kubelet/device-plugins/ name: devicesock readOnly: false - - mountPath: /sys/class/net/ + - mountPath: /sys/ name: sysfs readOnly: true - name: sriovdp-config @@ -77,7 +78,7 @@ spec: path: /var/lib/kubelet/device-plugins/ - name: sysfs hostPath: - path: /sys/class/net/ + path: /sys/ - name: sriovdp-config hostPath: path: /etc/pcidp/ -- 2.16.6