We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f80e8f9 commit 7f23b1bCopy full SHA for 7f23b1b
pkg/device/iolimit/utils.go
@@ -97,7 +97,11 @@ func getContainerdPodCGSuffix(podUid string) string {
97
func getContainerdCGPath(podUid string) (string, error) {
98
kubepodsCGPath := baseCgroupPath + "/kubepods.slice"
99
podSuffix := getContainerdPodCGSuffix(podUid)
100
- podCGPath := kubepodsCGPath + "/kubepods-besteffort.slice/kubepods-besteffort-" + podSuffix + ".slice"
+ podCGPath := kubepodsCGPath + "/kubepods-" + podSuffix + ".slice"
101
+ if helpers.DirExists(podCGPath) {
102
+ return podCGPath, nil
103
+ }
104
+ podCGPath = kubepodsCGPath + "/kubepods-besteffort.slice/kubepods-besteffort-" + podSuffix + ".slice"
105
if helpers.DirExists(podCGPath) {
106
return podCGPath, nil
107
}
0 commit comments