mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 21:17:23 +00:00
Do not move pid 1 to system container
This commit is contained in:
parent
870220e0f1
commit
e9c1d1ebd6
@ -387,7 +387,7 @@ func ensureSystemContainer(rootContainer *fs.Manager, manager *fs.Manager) error
|
|||||||
// Remove kernel pids and other protected PIDs (pid 1, PIDs already in system & kubelet containers)
|
// Remove kernel pids and other protected PIDs (pid 1, PIDs already in system & kubelet containers)
|
||||||
pids := make([]int, 0, len(allPids))
|
pids := make([]int, 0, len(allPids))
|
||||||
for _, pid := range allPids {
|
for _, pid := range allPids {
|
||||||
if isKernelPid(pid) {
|
if pid == 1 || isKernelPid(pid) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user