Prepare SRIOV DP Pod spec for v3.0.0+ 59/1659/1
authorFerenc Tóth <ferenc.2.toth@nokia.com>
Fri, 27 Sep 2019 09:04:43 +0000 (11:04 +0200)
committerFerenc Tóth <ferenc.2.toth@nokia.com>
Fri, 27 Sep 2019 09:04:43 +0000 (11:04 +0200)
- hostNetwork is needed
- need to access to the full /sys filesystem

Signed-off-by: Ferenc Tóth <ferenc.2.toth@nokia.com>
Change-Id: I0f5aefd5a9ace49e5a024f07cc0e8eeaf52d8bdf

SPECS/infra-charts.spec
infra-charts/templates/sriovdp-ds.yaml

index 33d643c..30a9300 100644 (file)
@@ -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}
index 9cb9577..ca0e889 100644 (file)
@@ -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/