cpu-setter-daemonset correction 28/1128/2
authorTobik, Balint <balint.tobik@nokia.com>
Fri, 5 Jul 2019 12:50:41 +0000 (14:50 +0200)
committerTobik, Balint <balint.tobik@nokia.com>
Fri, 5 Jul 2019 13:23:46 +0000 (15:23 +0200)
Signed-off-by: Tobik, Balint <balint.tobik@nokia.com>
Change-Id: Ifb5f275face421fbdd559a4094c6498e0ee9e61a

SPECS/infra-charts.spec
infra-charts/templates/cpu-setter-daemonset.yaml

index 8ff0562..b51e721 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 11
+%define RPM_MINOR_VERSION 12
 
 Name:           %{RPM_NAME}
 Version:        %{RPM_MAJOR_VERSION}
index fc19e8c..1a5ccd2 100644 (file)
@@ -40,7 +40,7 @@ spec:
     spec:
       priorityClassName: "system-node-critical"
       containers:
-      - name: cpu-device-plugin
+      - name: cpu-setter
         image: {{ .Values.registry_url }}/{{ .Values.registry_reponame }}/cpupooler:{{ .Values.cpupooler.container_version }}
         imagePullPolicy: IfNotPresent
         command: [ "/cpu-setter", "--poolconfigs=/etc/cpu-pooler", "--cpusetroot=/sys/fs/cgroup/cpuset/kubepods/" ]
@@ -53,7 +53,9 @@ spec:
            readOnly: true
          - mountPath: /etc/cpu-pooler
            name: cpu-pooler-config
-         - mountPath: /var/lib/kubelet/device-plugins/kubelet_internal_checkpoint
+         - mountPath: /sys/fs/cgroup/cpuset/kubepods/
+           name: kubepods
+         - mountPath: /var/lib/kubelet/device-plugins/
            name: checkpointfile
            readOnly: true
         env:
@@ -61,13 +63,18 @@ spec:
           valueFrom:
             fieldRef:
               fieldPath: spec.nodeName
+        securityContext:
+          privileged: true
       volumes:
       - name: time-mount
         hostPath:
           path: /etc/localtime
       - name: checkpointfile
         hostPath:
-         path: /var/lib/kubelet/device-plugins/kubelet_internal_checkpoint
+         path: /var/lib/kubelet/device-plugins/
+      - name: kubepods
+        hostPath:
+         path: /sys/fs/cgroup/cpuset/kubepods/
       - name: cpu-pooler-config
         configMap:
           name: cpu-pooler-configmap