%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}
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/" ]
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:
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