diff --git a/internal/cri/server/service.go b/internal/cri/server/service.go index 0cf34cab11..ba462a574d 100644 --- a/internal/cri/server/service.go +++ b/internal/cri/server/service.go @@ -21,6 +21,7 @@ import ( "fmt" "io" "net/http" + goruntime "runtime" "slices" "sync" "sync/atomic" @@ -281,7 +282,8 @@ func NewCRIService(options *CRIServiceOptions) (CRIService, runtime.RuntimeServi } c.runtimeFeatures = &runtime.RuntimeFeatures{ - SupplementalGroupsPolicy: true, + SupplementalGroupsPolicy: true, + UserNamespacesHostNetwork: goruntime.GOOS == "linux", } if c.config.EnableCDI != nil && !*c.config.EnableCDI {